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.CandidatecreateCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput)drawCandidates(org.apache.lucene.util.BytesRef term)abstract booleanisKnownWord(org.apache.lucene.util.BytesRef term)abstract org.apache.lucene.codecs.TermStatstermStats(org.apache.lucene.util.BytesRef term)
-
Constructor Details
-
CandidateGenerator
public CandidateGenerator()
-
-
Method Details
-
isKnownWord
- Throws:
IOException
-
termStats
public abstract org.apache.lucene.codecs.TermStats termStats(org.apache.lucene.util.BytesRef term) throws IOException- Throws:
IOException
-
drawCandidates
public DirectCandidateGenerator.CandidateSet drawCandidates(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
-