java.lang.Object
org.apache.lucene.search.Weight
org.apache.lucene.search.suggest.document.CompletionWeight
All Implemented Interfaces:
SegmentCacheable
Direct Known Subclasses:
ContextQuery.ContextCompletionWeight, FuzzyCompletionQuery.FuzzyCompletionWeight

public class CompletionWeight extends Weight
Expert: the Weight for CompletionQuery, used to score and explain these queries.

Subclasses can override setNextMatch(IntsRef), boost() and context() to calculate the boost and extract the context of a matched path prefix.