Class SpanPayloadCheckQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.spans.SpanQuery
org.apache.lucene.queries.payloads.SpanPayloadCheckQuery
Only return those matches that have a specific payload at the given position.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The payload type.static enum
The payload type.class
Weight that pulls its Spans using a PayloadSpanCollector -
Field Summary
Modifier and TypeFieldDescriptionprotected final SpanQuery
protected final SpanPayloadCheckQuery.MatchOperation
protected final SpanPayloadCheckQuery.PayloadType
-
Constructor Summary
ConstructorDescriptionSpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch) SpanPayloadCheckQuery
(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation) -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
getField()
Returns the name of the field matched by this query.int
hashCode()
rewrite
(IndexReader reader) void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.queries.spans.SpanQuery
getTermStates, getTermStates
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Field Details
-
payloadToMatch
-
match
-
operation
-
payloadType
-
-
Constructor Details
-
SpanPayloadCheckQuery
-
SpanPayloadCheckQuery
public SpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation)
-
-
Method Details
-
getField
Description copied from class:SpanQuery
Returns the name of the field matched by this query. -
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeight
in classSpanQuery
- Throws:
IOException
-
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
visit
-
toString
-
equals
-
hashCode
public int hashCode()
-