public class SpanNotQuery.SpanNotWeight extends SpanWeight
SpanWeight.PostingsWeight.DefaultBulkScorer| Modifier and Type | Field and Description |
|---|---|
(package private) SpanWeight |
excludeWeight |
(package private) SpanWeight |
includeWeight |
field, similarity, simWeightparentQuery| Constructor and Description |
|---|
SpanNotWeight(IndexSearcher searcher,
java.util.Map<Term,TermContext> terms,
SpanWeight includeWeight,
SpanWeight excludeWeight) |
| 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)
Expert: adds all terms occurring in this query to the terms set.
|
Spans |
getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Expert: Return a Spans object iterating over matches from this Weight
|
explain, getSimScorer, getValueForNormalization, normalize, scorerbulkScorer, getQueryfinal SpanWeight includeWeight
final SpanWeight excludeWeight
public SpanNotWeight(IndexSearcher searcher, java.util.Map<Term,TermContext> terms, SpanWeight includeWeight, SpanWeight excludeWeight) 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 topublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws java.io.IOException
SpanWeightgetSpans in class SpanWeightcontext - a LeafReaderContext for this Spansjava.io.IOException - on errorpublic void extractTerms(java.util.Set<Term> terms)
WeightWeight 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