to:sumitjai...@gmail.com]
> Sent: Tuesday, February 7, 2017 10:33 AM
> To: java-user@lucene.apache.org
> Subject: RE: java.lang.IllegalStateException: TokenStream contract violation:
> close() call missing
>
>
> Thanks Uwe, but I am using the same TokenStream so that I don't have to
Thanks Uwe, but I am using the same TokenStream so that I don't have to
create the filter chain every time. This is my filter chain construction:
Tokenizer tokenizer = tokenizerFactory.create();
TokenStream stream = new StandardFilter(tokenizer);
remen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: sumitj25 [mailto:sumitjai...@gmail.com]
> Sent: Tuesday, February 7, 2017 9:35 AM
> To: java-user@lucene.apache.org
> Subject: java.lang.IllegalStateException: TokenStream contract violation:
&g
Hi,
I am getting IllegalStateException even though I am following the
TokenStream guidelines:
public List tokenize(String text){
List tokens = new ArrayList<>();
try (TokenStream ts = analyzer.tokenStream("",text)){ //note
that this
is implicit finally