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, simWeight
parentQuery
Constructor and Description |
---|
SpanContainWeight(IndexSearcher searcher,
java.util.Map<Term,TermContext> terms,
SpanWeight bigWeight,
SpanWeight littleWeight) |
Modifier and Type | Method and Description |
---|---|
void |
extractTermContexts(java.util.Map<Term,TermContext> contexts)
Collect all TermContexts used by this Weight
|
void |
extractTerms(java.util.Set<Term> terms)
Extract terms from both
big and little . |
(package private) java.util.ArrayList<Spans> |
prepareConjunction(LeafReaderContext context,
SpanWeight.Postings postings) |
explain, getSimScorer, getSpans, getValueForNormalization, normalize, scorer
bulkScorer, getQuery
final SpanWeight bigWeight
final SpanWeight littleWeight
public SpanContainWeight(IndexSearcher searcher, java.util.Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight) 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 extractTermContexts(java.util.Map<Term,TermContext> contexts)
SpanWeight
extractTermContexts
in class SpanWeight
contexts
- a map to add the TermContexts to