public abstract class SpanContainQuery.SpanContainWeight extends SpanWeight
SpanWeight.PostingsWeight.DefaultBulkScorer| Modifier and Type | Field and Description |
|---|---|
(package private) SpanWeight |
bigWeight |
(package private) SpanWeight |
littleWeight |
field, similarity, simWeightparentQuery| 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, scorerbulkScorer, getQueryfinal 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.IOExceptionpublic void extractTerms(java.util.Set<Term> terms)
big and little.extractTerms in class Weightjava.util.ArrayList<Spans> prepareConjunction(LeafReaderContext context, SpanWeight.Postings postings) throws java.io.IOException
java.io.IOExceptionpublic void extractTermContexts(java.util.Map<Term,TermContext> contexts)
SpanWeightextractTermContexts in class SpanWeightcontexts - a map to add the TermContexts to