Class CandidateGenerator
java.lang.Object
org.elasticsearch.search.suggest.phrase.CandidateGenerator
- Direct Known Subclasses:
DirectCandidateGenerator
,MultiCandidateGeneratorWrapper
public abstract class CandidateGenerator
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description CandidateGenerator()
-
Method Summary
Modifier and Type Method Description DirectCandidateGenerator.Candidate
createCandidate(org.apache.lucene.util.BytesRef term, boolean userInput)
DirectCandidateGenerator.Candidate
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)
DirectCandidateGenerator.CandidateSet
drawCandidates(org.apache.lucene.util.BytesRef term)
abstract DirectCandidateGenerator.CandidateSet
drawCandidates(DirectCandidateGenerator.CandidateSet set)
abstract boolean
isKnownWord(org.apache.lucene.util.BytesRef term)
abstract org.apache.lucene.codecs.TermStats
termStats(org.apache.lucene.util.BytesRef term)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CandidateGenerator
public CandidateGenerator()
-
-
Method Details
-
isKnownWord
public abstract boolean isKnownWord(org.apache.lucene.util.BytesRef term) throws java.io.IOException- Throws:
java.io.IOException
-
termStats
public abstract org.apache.lucene.codecs.TermStats termStats(org.apache.lucene.util.BytesRef term) throws java.io.IOException- Throws:
java.io.IOException
-
drawCandidates
public DirectCandidateGenerator.CandidateSet drawCandidates(org.apache.lucene.util.BytesRef term) throws java.io.IOException- Throws:
java.io.IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, boolean userInput) throws java.io.IOException- Throws:
java.io.IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore) throws java.io.IOException- Throws:
java.io.IOException
-
createCandidate
public abstract DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double channelScore, boolean userInput) throws java.io.IOException- Throws:
java.io.IOException
-
drawCandidates
public abstract DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws java.io.IOException- Throws:
java.io.IOException
-