Uses of Class
org.apache.lucene.queries.spans.SpanQuery
Package
Description
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
-
Uses of SpanQuery in org.apache.lucene.queries.payloads
Modifier and TypeClassDescriptionclass
A Query class that uses aPayloadFunction
to modify the score of a wrapped SpanQueryclass
Only return those matches that have a specific payload at the given position.ModifierConstructorDescriptionPayloadScoreQuery
(SpanQuery wrappedQuery, PayloadFunction function, PayloadDecoder decoder) Creates a new PayloadScoreQuery that includes the underlying span scoresPayloadScoreQuery
(SpanQuery wrappedQuery, PayloadFunction function, PayloadDecoder decoder, boolean includeSpanScore) Creates a new PayloadScoreQuerySpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch) SpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation) -
Uses of SpanQuery in org.apache.lucene.queries.spans
Modifier and TypeClassDescriptionfinal class
Wrapper to allowSpanQuery
objects participate in composite single-field SpanQueries by 'lying' about their search field.final class
Keep matches that contain another SpanScorer.class
Matches spans near the beginning of a field.class
SpanMultiTermQueryWrapper<Q extends MultiTermQuery>
Wraps anyMultiTermQuery
as aSpanQuery
, so it can be nested within other SpanQuery classes.class
Matches spans which are near one another.final class
Removes matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.final class
Matches the union of its clauses.class
Base class for filtering a SpanQuery based on the position of a match.class
Checks to see if theSpanPositionCheckQuery.getMatch()
lies between a start and end positionclass
Matches spans containing a term.final class
Keep matches that are contained within another Spans.Modifier and TypeMethodDescriptionSpanNearQuery.getClauses()
Return the clauses whose spans are matched.SpanOrQuery.getClauses()
Return the clauses whose spans are matched.SpanNotQuery.getExclude()
Return the SpanQuery whose matches must not overlap those returned.SpanNotQuery.getInclude()
Return the SpanQuery whose matches are filtered.FieldMaskingSpanQuery.getMaskedQuery()
SpanPositionCheckQuery.getMatch()
abstract SpanQuery
SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite
(IndexReader reader, MultiTermQuery query) SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite
(IndexReader reader, MultiTermQuery query) Modifier and TypeMethodDescriptionAdd a new clauseModifierConstructorDescriptionFieldMaskingSpanQuery
(SpanQuery maskedQuery, String maskedField) SpanContainingQuery
(SpanQuery big, SpanQuery little) Construct a SpanContainingQuery matching spans frombig
that contain at least one spans fromlittle
.SpanFirstQuery
(SpanQuery match, int end) Construct a SpanFirstQuery matching spans inmatch
whose end position is less than or equal toend
.SpanNearQuery
(SpanQuery[] clausesIn, int slop, boolean inOrder) Construct a SpanNearQuery.SpanNotQuery
(SpanQuery include, SpanQuery exclude) Construct a SpanNotQuery matching spans frominclude
which have no overlap with spans fromexclude
.SpanNotQuery
(SpanQuery include, SpanQuery exclude, int dist) Construct a SpanNotQuery matching spans frominclude
which have no overlap with spans fromexclude
withindist
tokens ofinclude
.SpanNotQuery
(SpanQuery include, SpanQuery exclude, int pre, int post) Construct a SpanNotQuery matching spans frominclude
which have no overlap with spans fromexclude
withinpre
tokens before orpost
tokens ofinclude
.SpanOrQuery
(SpanQuery... clauses) Construct a SpanOrQuery merging the provided clauses.SpanPositionCheckQuery
(SpanQuery match) SpanPositionRangeQuery
(SpanQuery match, int start, int end) SpanWeight
(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) Create a new SpanWeightSpanWithinQuery
(SpanQuery big, SpanQuery little) Construct a SpanWithinQuery matching spans fromlittle
that are inside ofbig
.