Class SpanPayloadCheckQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.spans.SpanQuery
-
- org.apache.lucene.queries.payloads.SpanPayloadCheckQuery
-
public class SpanPayloadCheckQuery extends SpanQuery
Only return those matches that have a specific payload at the given position.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpanPayloadCheckQuery.SpanPayloadCheckWeightWeight that pulls its Spans using a PayloadSpanCollector
-
Field Summary
Fields Modifier and Type Field Description protected SpanQuerymatchprotected List<BytesRef>payloadToMatch
-
Constructor Summary
Constructors Constructor Description SpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanWeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object other)StringgetField()inthashCode()Queryrewrite(IndexReader reader)StringtoString(String field)voidvisit(QueryVisitor visitor)-
Methods inherited from class org.apache.lucene.search.spans.SpanQuery
getTermStates, getTermStates
-
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
-
-
-
Method Detail
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Specified by:
createWeightin classSpanQuery- Throws:
IOException
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
public void visit(QueryVisitor visitor)
-
-