Package org.apache.lucene.search.spans
Class SpanPayloadCheckQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.spans.SpanQuery
org.apache.lucene.search.spans.SpanPositionCheckQuery
org.apache.lucene.search.spans.SpanPayloadCheckQuery
- All Implemented Interfaces:
Cloneable
Only return those matches that have a specific payload at
the given position.
Do not use this with an SpanQuery that contains a
SpanNearQuery. Instead, use
SpanNearPayloadCheckQuery since it properly handles the fact that payloads
aren't ordered by SpanNearQuery.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.search.spans.SpanPositionCheckQuery
extractTerms, getField, getMatch, getSpans, rewriteMethods inherited from class org.apache.lucene.search.spans.SpanQuery
createWeight
-
Constructor Details
-
SpanPayloadCheckQuery
- Parameters:
match- The underlyingSpanQueryto checkpayloadToMatch- TheCollectionof payloads to match
-
-
Method Details