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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe payload type.static enumThe payload type.classWeight that pulls its Spans using a PayloadSpanCollector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SpanQueryprotected final SpanPayloadCheckQuery.MatchOperationprotected final SpanPayloadCheckQuery.PayloadType -
Constructor Summary
ConstructorsConstructorDescriptionSpanPayloadCheckQuery(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) booleangetField()Returns the name of the field matched by this query.inthashCode()rewrite(IndexSearcher indexSearcher) voidvisit(QueryVisitor visitor) Methods inherited from class org.apache.lucene.queries.spans.SpanQuery
getTermStates, getTermStatesMethods 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:SpanQueryReturns the name of the field matched by this query. -
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Specified by:
createWeightin classSpanQuery- Throws:
IOException
-
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
-
toString
-
equals
-
hashCode
public int hashCode()
-