Page MenuHomePhabricator

Fix a bug in PhraseSuggester that prevents us to use the reverse field
Closed, ResolvedPublic

Description

Caused by: java.lang.IllegalStateException: TokenStream contract violation: close() call missing
	at org.apache.lucene.analysis.Tokenizer.setReader(Tokenizer.java:90)
	at org.apache.lucene.analysis.Analyzer$TokenStreamComponents.setReader(Analyzer.java:323)
	at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:147)
	at org.elasticsearch.search.suggest.SuggestUtils.analyze(SuggestUtils.java:119)
	at org.elasticsearch.search.suggest.SuggestUtils.analyze(SuggestUtils.java:115)
	at org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.preFilter(DirectCandidateGenerator.java:133)
	at org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.drawCandidates(DirectCandidateGenerator.java:114)
	at org.elasticsearch.search.suggest.phrase.MultiCandidateGeneratorWrapper.drawCandidates(MultiCandidateGeneratorWrapper.java:52)
	at org.elasticsearch.search.suggest.phrase.NoisyChannelSpellChecker.getCorrections(NoisyChannelSpellChecker.java:116)
	at org.elasticsearch.search.suggest.phrase.PhraseSuggester.innerExecute(PhraseSuggester.java:98)
	at org.elasticsearch.search.suggest.phrase.PhraseSuggester.innerExecute(PhraseSuggester.java:54)
	at org.elasticsearch.search.suggest.Suggester.execute(Suggester.java:43)
	at org.elasticsearch.search.suggest.SuggestPhase.execute(SuggestPhase.java:85)
	at org.elasticsearch.action.suggest.TransportSuggestAction.shardOperation(TransportSuggestAction.java:162)
	... 5 more

Event Timeline

dcausse created this task.Aug 5 2015, 2:49 PM
dcausse claimed this task.
dcausse raised the priority of this task from to Needs Triage.
dcausse updated the task description. (Show Details)
dcausse added a subscriber: dcausse.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 5 2015, 2:49 PM
dcausse set Security to None.
Restricted Application added a project: Discovery. · View Herald TranscriptAug 5 2015, 2:49 PM

Will be fixed with elasticsearch 1.7.2

Deskana closed this task as Resolved.Sep 12 2015, 2:44 AM
Deskana moved this task from Done to Resolved on the Discovery-Search (Current work) board.
Deskana added a subscriber: Deskana.