://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Spyros Kapnissis [mailto:ska...@yahoo.com.INVALID]
> Sent: Monday, March 23, 2015 11:02 PM
> To: java-user@lucene.apache.org; Ahmet Arslan
> Subject: Re: CachingTokenFilter tests fail when using MockTokenizer
&
NVALID]
> Sent: Monday, March 23, 2015 11:02 PM
> To: java-user@lucene.apache.org; Ahmet Arslan
> Subject: Re: CachingTokenFilter tests fail when using MockTokenizer
>
> Hello Ahmet,
> Unfortunately the test still fails with the same error: "end() called before
> incrementTo
Hello Ahmet,
Unfortunately the test still fails with the same error: "end() called before
incrementToken() returned false!". I am not sure if I am misusing
CachingTokenFilter, or if it cannot be used with MockTokenizer, since it
"always calls end() before incrementToken() returns false".
Spyros
Hi Spyros,
Not 100% sure but I think you should override reset method.
@Override
public void reset() throws IOException {
super.reset();
cachedInput = null;
}
Ahmet
On Monday, March 23, 2015 1:29 PM, Spyros Kapnissis
wrote:
Hello,
We have a couple of custom token filters that use CachingTo