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, scorer
getQuery, matches, scorerSupplier
private 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.IOException
protected void setNextMatch(IntsRef pathPrefix)
CompletionWeight
CompletionWeight.boost()
and CompletionWeight.context()
to return an appropriate value with respect to the current pathPrefix.setNextMatch
in class CompletionWeight
pathPrefix
- the prefix of a matched pathprotected float boost()
CompletionWeight
CompletionWeight.setNextMatch(IntsRef)
boost
in class CompletionWeight