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 class
SpanPayloadCheckQuery.SpanPayloadCheckWeight
Weight that pulls its Spans using a PayloadSpanCollector
-
Field Summary
Fields Modifier and Type Field Description protected SpanQuery
match
protected 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 SpanWeight
createWeight(IndexSearcher searcher, boolean needsScores, float boost)
boolean
equals(Object other)
String
getField()
int
hashCode()
Query
rewrite(IndexReader reader)
String
toString(String field)
-
Methods inherited from class org.apache.lucene.search.spans.SpanQuery
getTermContexts, getTermContexts
-
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
-
-
-
Method Detail
-
createWeight
public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
- Specified by:
createWeight
in classSpanQuery
- Throws:
IOException
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
-