Class MultiCandidateGeneratorWrapper
java.lang.Object
org.elasticsearch.search.suggest.phrase.CandidateGenerator
org.elasticsearch.search.suggest.phrase.MultiCandidateGeneratorWrapper
-
Constructor Summary
ConstructorDescriptionMultiCandidateGeneratorWrapper(int numCandidates, CandidateGenerator... candidateGenerators)
-
Method Summary
Modifier and TypeMethodDescriptioncreateCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput)
boolean
isKnownWord(org.apache.lucene.util.BytesRef term)
org.apache.lucene.codecs.TermStats
termStats(org.apache.lucene.util.BytesRef term)
Methods inherited from class org.elasticsearch.search.suggest.phrase.CandidateGenerator
createCandidate, createCandidate, drawCandidates
-
Constructor Details
-
MultiCandidateGeneratorWrapper
-
-
Method Details
-
isKnownWord
- Specified by:
isKnownWord
in classCandidateGenerator
- Throws:
IOException
-
termStats
public org.apache.lucene.codecs.TermStats termStats(org.apache.lucene.util.BytesRef term) throws IOException- Specified by:
termStats
in classCandidateGenerator
- Throws:
IOException
-
drawCandidates
public DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws IOException- Specified by:
drawCandidates
in classCandidateGenerator
- Throws:
IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput) throws IOException- Specified by:
createCandidate
in classCandidateGenerator
- Throws:
IOException
-