Class MultiCandidateGeneratorWrapper
java.lang.Object
org.elasticsearch.search.suggest.phrase.CandidateGenerator
org.elasticsearch.search.suggest.phrase.MultiCandidateGeneratorWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionMultiCandidateGeneratorWrapper(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)booleanisKnownWord(org.apache.lucene.util.BytesRef term)org.apache.lucene.codecs.TermStatstermStats(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:
isKnownWordin classCandidateGenerator- Throws:
IOException
-
termStats
public org.apache.lucene.codecs.TermStats termStats(org.apache.lucene.util.BytesRef term) throws IOException- Specified by:
termStatsin classCandidateGenerator- Throws:
IOException
-
drawCandidates
public DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws IOException- Specified by:
drawCandidatesin 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:
createCandidatein classCandidateGenerator- Throws:
IOException
-