public class SpanWithinQuery.SpanWithinWeight
extends org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight
SpanWeight.PostingsWeight.DefaultBulkScorerfield, similarity, simWeightparentQuery| Constructor and Description |
|---|
SpanWithinWeight(IndexSearcher searcher,
java.util.Map<Term,TermContext> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
Spans |
getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
little that are contained in a spans from big. |
boolean |
isCacheable(LeafReaderContext ctx) |
extractTermContexts, extractTermsexplain, getSimScorer, matches, scorerbulkScorer, getQuery, scorerSupplierpublic SpanWithinWeight(IndexSearcher searcher, java.util.Map<Term,TermContext> 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
little that are contained in a spans from big.
The payload is from the spans of little.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 leafCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.