public class SpanWithinQuery.SpanWithinWeight
extends org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight
SpanWeight.Postings
Weight.DefaultBulkScorer, Weight.StartDISIWrapper
field, similarity, simScorer
parentQuery
Constructor and Description |
---|
SpanWithinWeight(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
little that are contained in a spans from big . |
boolean |
isCacheable(LeafReaderContext ctx) |
extractTerms, extractTermStates
explain, getSimScorer, matches, scorer
bulkScorer, getQuery, scorerSupplier
public SpanWithinWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) throws IOException
IOException
public Spans getSpans(LeafReaderContext context, SpanWeight.Postings requiredPostings) throws IOException
little
that are contained in a spans from big
.
The payload is from the spans of little
.getSpans
in class SpanWeight
context
- 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.