Hi guys,
I am working on an app who needs awesome duke's features but it also has a dependencies on Lucene 4.8 that can't be downgraded.
So when I invoke the deduplication process I receive the exception:
java.lang.IllegalStateException: TokenStream contract violation: close() call missing
at org.apache.lucene.analysis.Tokenizer.setReader(Tokenizer.java:89)
at org.apache.lucene.analysis.Analyzer$TokenStreamComponents.setReader(Analyzer.java:307)
at org.apache.lucene.analysis.standard.StandardAnalyzer$1.setReader(StandardAnalyzer.java:120)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:145)
at no.priv.garshol.duke.databases.LuceneDatabase.parseTokens(LuceneDatabase.java:393)
at no.priv.garshol.duke.databases.LuceneDatabase.findCandidateMatches(LuceneDatabase.java:266)
at no.priv.garshol.duke.Processor.match(Processor.java:417)
at no.priv.garshol.duke.Processor.match(Processor.java:252)
at no.priv.garshol.duke.Processor.deduplicate(Processor.java:244)
[...]
In a previous post I read that there is some kind of fix for that issue and I would be glad if someone can enlighten me a little bit on how can i solve the problem.
Thanks a lot
Matteo