Re: adding attributes to TokenStream

2012-12-31 Thread Michael Sokolov
On 12/31/2012 11:39 AM, Itai Peleg wrote: Hi all, Can someone please post a simple example showing how to add additional attributes to token in a TokenStream (inside IncrementToken for example?). I'm working on entity extraction and want to flag specific tokens an entities, but I'm having probl

RE: MultiSearcher in lucene4.0

2012-12-31 Thread Uwe Schindler
Hi, MultiSearcher was deprecated in Lucene 3.1 and removed in Lucene 4.0. Use a MultiReader on top of a set of IndexReaders and construct a simple IndexSearcher using the MultiReader. See also the Javadocs how to do this. Before: MultiSearcher( IndexSearcher(IndexReader), IndexSearcher(I