public class SpanPositionCheckQuery.SpanPositionCheckWeight extends SpanWeight
SpanWeight.Postings
Weight.DefaultBulkScorer, Weight.StartDISIWrapper
field, similarity, simScorer
parentQuery
Constructor and Description |
---|
SpanPositionCheckWeight(SpanWeight matchWeight,
IndexSearcher searcher,
Map<Term,TermStates> terms,
float boost) |
Modifier and Type | Method and Description |
---|---|
void |
extractTerms(Set<Term> terms)
Expert: adds all terms occurring in this query to the terms set.
|
void |
extractTermStates(Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight
|
Spans |
getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Expert: Return a Spans object iterating over matches from this Weight
|
boolean |
isCacheable(LeafReaderContext ctx) |
explain, getSimScorer, matches, scorer
bulkScorer, getQuery, scorerSupplier
public SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermStates> terms, float boost) throws IOException
IOException
public void extractTerms(Set<Term> terms)
Weight
Weight
was created with needsScores == true
then this
method will only extract terms which are used for scoring, otherwise it
will extract all terms which are used for matching.extractTerms
in class Weight
public boolean isCacheable(LeafReaderContext ctx)
true
if the object can be cached against a given leafpublic void extractTermStates(Map<Term,TermStates> contexts)
SpanWeight
extractTermStates
in class SpanWeight
contexts
- a map to add the TermStates topublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws IOException
SpanWeight
getSpans
in class SpanWeight
context
- a LeafReaderContext for this SpansIOException
- on errorCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.