public abstract class SpanContainQuery.SpanContainWeight extends SpanWeight
SpanWeight.Postings
Weight.DefaultBulkScorer
Modifier and Type | Field and Description |
---|---|
(package private) SpanWeight |
bigWeight |
(package private) SpanWeight |
littleWeight |
field, similarity, simScorer
parentQuery
Constructor and Description |
---|
SpanContainWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
Modifier and Type | Method and Description |
---|---|
void |
extractTerms(java.util.Set<Term> terms)
Extract terms from both
big and little . |
void |
extractTermStates(java.util.Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight
|
(package private) java.util.ArrayList<Spans> |
prepareConjunction(LeafReaderContext context,
SpanWeight.Postings postings) |
explain, getSimScorer, getSpans, matches, scorer
bulkScorer, getQuery, scorerSupplier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCacheable
final SpanWeight bigWeight
final SpanWeight littleWeight
public SpanContainWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws java.io.IOException
java.io.IOException
public void extractTerms(java.util.Set<Term> terms)
big
and little
.extractTerms
in class Weight
java.util.ArrayList<Spans> prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings) throws java.io.IOException
java.io.IOException
public void extractTermStates(java.util.Map<Term,TermStates> contexts)
SpanWeight
extractTermStates
in class SpanWeight
contexts
- a map to add the TermStates to