public class SpanContainingQuery.SpanContainingWeight extends SpanContainQuery.SpanContainWeight
SpanWeight.PostingsWeight.DefaultBulkScorerbigWeight, littleWeightfield, similarity, simScorerparentQuery| Constructor and Description |
|---|
SpanContainingWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
Spans |
getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
big that contain at least one spans from little. |
boolean |
isCacheable(LeafReaderContext ctx) |
extractTerms, extractTermStates, prepareConjunctionexplain, getSimScorer, matches, scorerbulkScorer, getQuery, scorerSupplierpublic SpanContainingWeight(IndexSearcher searcher, java.util.Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws java.io.IOException
java.io.IOExceptionpublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws java.io.IOException
big that contain at least one spans from little.
The payload is from the spans of big.getSpans in class SpanWeightcontext - a LeafReaderContext for this Spansjava.io.IOException - on errorpublic boolean isCacheable(LeafReaderContext ctx)
true if the object can be cached against a given leaf