Class CandidateGenerator
java.lang.Object
org.opensearch.search.suggest.phrase.CandidateGenerator
- Direct Known Subclasses:
DirectCandidateGenerator
,MultiCandidateGeneratorWrapper
Base class for phrase candidates
- Opensearch.internal:
-
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) drawCandidates
(org.apache.lucene.util.BytesRef term) abstract boolean
isKnownWord
(org.apache.lucene.util.BytesRef term) abstract org.apache.lucene.codecs.TermStats
termStats
(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
-