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);
                        for (LuceneFactoryConfig filterConfig : 
config.getFilters()) {
                                if(filterConfig.getClass()!=null){
                                        stream = stream(config, filterConfig, 
stream);
                                }else {
                                        LOG.warn("Skipping filter {}, class not
found!",filterConfig.getName());
                                }
                        }

Does this mean, we have to create filter chain every time?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/java-lang-IllegalStateException-TokenStream-contract-violation-close-call-missing-tp4319109p4319123.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to