Uses of Class
org.apache.lucene.search.spans.SpanQuery
Packages that use 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.search.payloads
Subclasses of SpanQuery in org.apache.lucene.search.payloadsModifier and TypeClassDescriptionclass
This class is very similar toSpanNearQuery
except that it factors in the value of the payloads located at each of the positions where theTermSpans
occurs.class
This class is very similar toSpanTermQuery
except that it factors in the value of the payload located at each of the positions where theTerm
occurs.Constructors in org.apache.lucene.search.payloads with parameters of type SpanQueryModifierConstructorDescriptionPayloadNearQuery
(SpanQuery[] clauses, int slop, boolean inOrder) PayloadNearQuery
(SpanQuery[] clauses, int slop, boolean inOrder, PayloadFunction function) PayloadNearSpanWeight
(SpanQuery query, IndexSearcher searcher) -
Uses of SpanQuery in org.apache.lucene.search.spans
Subclasses of SpanQuery in org.apache.lucene.search.spansModifier and TypeClassDescriptionclass
Wrapper to allowSpanQuery
objects participate in composite single-field SpanQueries by 'lying' about their search field.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
Only return those matches that have a specific payload at the given position.class
Matches spans which are near one another.class
Removes matches which overlap with another SpanQuery or within a x tokens before or y tokens after another SpanQuery.class
Matches the union of its clauses.class
Only return those matches that have a specific payload at the given position.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.Fields in org.apache.lucene.search.spans declared as SpanQueryModifier and TypeFieldDescriptionprotected SpanQuery
SpanPositionCheckQuery.match
protected SpanQuery
SpanWeight.query
Fields in org.apache.lucene.search.spans with type parameters of type SpanQueryMethods in org.apache.lucene.search.spans that return SpanQueryModifier 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) Methods in org.apache.lucene.search.spans with parameters of type SpanQueryModifier and TypeMethodDescriptionfinal void
Adds a clause to this queryConstructors in org.apache.lucene.search.spans with parameters of type SpanQueryModifierConstructorDescriptionFieldMaskingSpanQuery
(SpanQuery maskedQuery, String maskedField) SpanFirstQuery
(SpanQuery match, int end) Construct a SpanFirstQuery matching spans inmatch
whose end position is less than or equal toend
.SpanNearQuery
(SpanQuery[] clauses, int slop, boolean inOrder) Construct a SpanNearQuery.SpanNearQuery
(SpanQuery[] clauses, int slop, boolean inOrder, boolean collectPayloads) 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.SpanPayloadCheckQuery
(SpanQuery match, Collection<byte[]> payloadToMatch) SpanPositionCheckQuery
(SpanQuery match) SpanPositionRangeQuery
(SpanQuery match, int start, int end) SpanWeight
(SpanQuery query, IndexSearcher searcher)