Module org.elasticsearch.server
Class CandidateGenerator
java.lang.Object
org.elasticsearch.search.suggest.phrase.CandidateGenerator
- Direct Known Subclasses:
DirectCandidateGenerator
,MultiCandidateGeneratorWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCandidate
(org.apache.lucene.util.BytesRef term, boolean userInput) createCandidate
(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore) abstract DirectCandidateGenerator.Candidate
createCandidate
(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput) abstract org.apache.lucene.codecs.TermStats
termStats
(org.apache.lucene.util.BytesRef term)
-
Constructor Details
-
CandidateGenerator
public CandidateGenerator()
-
-
Method Details
-
termStats
public abstract org.apache.lucene.codecs.TermStats termStats(org.apache.lucene.util.BytesRef term) throws IOException - Throws:
IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, boolean userInput) throws IOException - Throws:
IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore) throws IOException - Throws:
IOException
-
createCandidate
public abstract DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput) throws IOException - Throws:
IOException
-
drawCandidates
public abstract DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws IOException - Throws:
IOException
-