public class SpanContainingQuery.SpanContainingWeight
extends org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight
SpanWeight.Postings
Weight.DefaultBulkScorer
field, similarity, simWeight
parentQuery
Constructor and Description |
---|
SpanContainingWeight(IndexSearcher searcher,
Map<Term,TermContext> terms,
SpanWeight bigWeight,
SpanWeight littleWeight) |
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 . |
extractTermContexts, extractTerms
explain, getSimScorer, getValueForNormalization, normalize, scorer
bulkScorer, getQuery, scorerSupplier
public SpanContainingWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight) throws IOException
IOException
public 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 SpanWeight
context
- a LeafReaderContext for this SpansIOException
- on errorCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.