private static class FuzzyCompletionQuery.FuzzyCompletionWeight extends CompletionWeight
Weight.DefaultBulkScorer| Modifier and Type | Field and Description |
|---|---|
(package private) int |
currentBoost |
private java.util.Set<IntsRef> |
refs |
parentQuery| Constructor and Description |
|---|
FuzzyCompletionWeight(CompletionQuery query,
Automaton automaton,
java.util.Set<IntsRef> refs) |
| Modifier and Type | Method and Description |
|---|---|
protected float |
boost()
Returns the boost of the partial path set by
CompletionWeight.setNextMatch(IntsRef) |
protected void |
setNextMatch(IntsRef pathPrefix)
Set for every partial path in the index that matched the query
automaton.
|
bulkScorer, context, explain, extractTerms, getAutomaton, isCacheable, scorergetQuery, matches, scorerSupplierprivate final java.util.Set<IntsRef> refs
int currentBoost
public FuzzyCompletionWeight(CompletionQuery query, Automaton automaton, java.util.Set<IntsRef> refs) throws java.io.IOException
java.io.IOExceptionprotected void setNextMatch(IntsRef pathPrefix)
CompletionWeightCompletionWeight.boost() and CompletionWeight.context()
to return an appropriate value with respect to the current pathPrefix.setNextMatch in class CompletionWeightpathPrefix - the prefix of a matched pathprotected float boost()
CompletionWeightCompletionWeight.setNextMatch(IntsRef)boost in class CompletionWeight