Uses of Class
org.apache.lucene.queries.spans.Spans
Package
Description
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
-
Uses of Spans in org.apache.lucene.queries.payloads
Modifier and TypeMethodDescriptionSpanPayloadCheckQuery.SpanPayloadCheckWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) -
Uses of Spans in org.apache.lucene.queries.spans
Modifier and TypeClassDescriptionclass
ASpans
implementation wrapping another spans instance, allowing to filter spans matches easily by implementingFilterSpans.accept(org.apache.lucene.queries.spans.Spans)
class
A Spans that is formed from the ordered subspans of a SpanNearQuery where the subspans do not overlap and have a maximum slop between them.class
Similar toNearSpansOrdered
, but for the unordered case.class
Expert: Public for extension only.Modifier and TypeFieldDescriptionprotected final Spans
FilterSpans.in
The wrapped spans instance.final Spans
SpanDisiWrapper.spans
protected final Spans
SpanScorer.spans
Modifier and TypeMethodDescriptionSpanContainingQuery.SpanContainingWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) Return spans frombig
that contain at least one spans fromlittle
.SpanNearQuery.SpanNearWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanNotQuery.SpanNotWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanOrQuery.SpanOrWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanPositionCheckQuery.SpanPositionCheckWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) SpanScorer.getSpans()
return the Spans for this Scorer *SpanTermQuery.SpanTermWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) abstract Spans
SpanWeight.getSpans
(LeafReaderContext ctx, SpanWeight.Postings requiredPostings) Expert: Return a Spans object iterating over matches from this WeightSpanWithinQuery.SpanWithinWeight.getSpans
(LeafReaderContext context, SpanWeight.Postings requiredPostings) Return spans fromlittle
that are contained in a spans frombig
.Modifier and TypeMethodDescriptionprotected abstract FilterSpans.AcceptStatus
Returns YES if the candidate should be an accepted match, NO if it should not, and NO_MORE_IN_CURRENT_DOC if iteration should move on to the next document.protected FilterSpans.AcceptStatus
SpanFirstQuery.acceptPosition
(Spans spans) protected abstract FilterSpans.AcceptStatus
SpanPositionCheckQuery.acceptPosition
(Spans spans) Implementing classes are required to return whether the current position is a match for the passed in "match"SpanQuery
.protected FilterSpans.AcceptStatus
SpanPositionRangeQuery.acceptPosition
(Spans spans) ModifierConstructorDescriptionprotected
FilterSpans
(Spans in) Wrap the givenSpans
.SpanDisiWrapper
(Spans spans) SpanScorer
(SpanWeight weight, Spans spans, LeafSimScorer docScorer) Sole constructor.ModifierConstructorDescriptionNearSpansOrdered
(int allowedSlop, List<Spans> subSpans) NearSpansUnordered
(int allowedSlop, List<Spans> subSpans)