Uses of Class
org.apache.lucene.search.spans.SpanQuery
-
Packages that use SpanQuery Package Description org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.util Some utility classes. -
-
Uses of SpanQuery in org.apache.lucene.search.spans
Subclasses of SpanQuery in org.apache.lucene.search.spans Modifier and Type Class Description class
FieldMaskingSpanQuery
Wrapper to allowSpanQuery
objects participate in composite single-field SpanQueries by 'lying' about their search field.class
SpanBoostQuery
Counterpart ofBoostQuery
for spans.class
SpanContainingQuery
Keep matches that contain another SpanScorer.class
SpanFirstQuery
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
SpanNearQuery
Matches spans which are near one another.class
SpanNotQuery
Removes matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.class
SpanOrQuery
Matches the union of its clauses.class
SpanPositionCheckQuery
Base class for filtering a SpanQuery based on the position of a match.class
SpanPositionRangeQuery
Checks to see if theSpanPositionCheckQuery.getMatch()
lies between a start and end position SeeSpanFirstQuery
for a derivation that is optimized for the case where start position is 0.class
SpanTermQuery
Matches spans containing a term.class
SpanWithinQuery
Keep matches that are contained within another Spans.Fields in org.apache.lucene.search.spans declared as SpanQuery Modifier and Type Field Description protected SpanQuery
SpanPositionCheckQuery. match
Fields in org.apache.lucene.search.spans with type parameters of type SpanQuery Modifier and Type Field Description protected List<SpanQuery>
SpanNearQuery. clauses
Methods in org.apache.lucene.search.spans that return SpanQuery Modifier and Type Method Description SpanQuery[]
SpanNearQuery. getClauses()
Return the clauses whose spans are matched.SpanQuery[]
SpanOrQuery. getClauses()
Return the clauses whose spans are matched.SpanQuery
SpanNotQuery. getExclude()
Return the SpanQuery whose matches must not overlap those returned.SpanQuery
SpanNotQuery. getInclude()
Return the SpanQuery whose matches are filtered.SpanQuery
FieldMaskingSpanQuery. getMaskedQuery()
SpanQuery
SpanPositionCheckQuery. getMatch()
SpanQuery
SpanBoostQuery. getQuery()
Return the wrappedSpanQuery
.abstract SpanQuery
SpanMultiTermQueryWrapper.SpanRewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)
SpanQuery
SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite. rewrite(IndexReader reader, MultiTermQuery query)
Methods in org.apache.lucene.search.spans with parameters of type SpanQuery Modifier and Type Method Description SpanNearQuery.Builder
SpanNearQuery.Builder. addClause(SpanQuery clause)
Add a new clauseConstructors in org.apache.lucene.search.spans with parameters of type SpanQuery Constructor Description FieldMaskingSpanQuery(SpanQuery maskedQuery, String maskedField)
SpanBoostQuery(SpanQuery query, float boost)
Sole constructor: wrapquery
in such a way that the produced scores will be boosted byboost
.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,TermContext> termContexts, float boost)
Create a new SpanWeightSpanWithinQuery(SpanQuery big, SpanQuery little)
Construct a SpanWithinQuery matching spans fromlittle
that are inside ofbig
. -
Uses of SpanQuery in org.apache.lucene.util
Methods in org.apache.lucene.util that return SpanQuery Modifier and Type Method Description protected SpanQuery
QueryBuilder. createSpanQuery(TokenStream in, String field)
Creates a span query from the tokenstream.
-