Re: [C2-devel] Lucene 2.4.1
Brought to you by:
dawidweiss,
stachoo
From: Stanislaw O. <sta...@os...> - 2011-06-06 10:08:45
|
> > This said, > there's been many improvements and bug fixes since then... so an > alternative route would be to fork the project locally and patch the > lucene document source to use Lucene's 2.4.x API (you could even take > the old one from the SVN and simply recompile it -- it should work). > When backporting the latest Carrot2 for Lucene 2.4.x, apart from the LuceneDocumentSource (only if you're using it), you'd need to patch the language model handling code that depends on Lucene: https://fisheye3.atlassian.com/browse/carrot2/trunk/core/carrot2-util-text/src/org/carrot2/text/linguistic/lucene/SnowballStemmerFactory.java?hb=true https://fisheye3.atlassian.com/browse/carrot2/trunk/core/carrot2-util-text/src/org/carrot2/text/linguistic/lucene/ChineseTokenizerAdapter.java?hb=true https://fisheye3.atlassian.com/browse/carrot2/trunk/core/carrot2-util-text/src/org/carrot2/text/linguistic/lucene/ArabicStemmerAdapter.java?hb=true Take a look at the Carrot2 3.2.0 source code (the org.carrot2.text.linguistic.* package) for the Lucene 2.4.x implementations of the above classes. Cheers, Staszek |