RE: Question about custom Analyzer

2010-11-04 Thread Uwe Schindler
The problem with your implementatio n of reuseableTokenStream is that it does not set a new reader when it reuses. Reset() is the wrong method. Attempt b is also wrong, as it does not reuse the whole analyzer chain. The correct way is to make some utility class that you use for storing the Token

Re: Question about custom Analyzer

2010-11-05 Thread heikki
thanks ! With your fast response we've been able to get it to work. Kind regards Heikki Doeleman On Thu, Nov 4, 2010 at 11:01 AM, Uwe Schindler wrote: > The problem with your implementatio n of reuseableTokenStream is that it > does not set a new reader when it reuses. Reset() is the wrong m