public class SpanContainingQuery.SpanContainingWeight
extends org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight
SpanWeight.PostingsWeight.DefaultBulkScorerfield, similarity, simScorerparentQuery| Constructor and Description |
|---|
SpanContainingWeight(IndexSearcher searcher,
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, extractTermStatesexplain, getSimScorer, matches, scorerbulkScorer, getQuery, scorerSupplierpublic SpanContainingWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws IOException
IOExceptionpublic Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws 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 SpansIOException - on errorpublic boolean isCacheable(LeafReaderContext ctx)
true if the object can be cached against a given leafCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.