public class SpanPayloadCheckQuery extends SpanQuery
| Modifier and Type | Class and Description |
|---|---|
class |
SpanPayloadCheckQuery.SpanPayloadCheckWeight
Weight that pulls its Spans using a PayloadSpanCollector
|
| Modifier and Type | Field and Description |
|---|---|
protected SpanQuery |
match |
protected List<BytesRef> |
payloadToMatch |
| Constructor and Description |
|---|
SpanPayloadCheckQuery(SpanQuery match,
List<BytesRef> payloadToMatch) |
| Modifier and Type | Method and Description |
|---|---|
SpanWeight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Create a SpanWeight for this query
|
boolean |
equals(Object o) |
String |
getField()
Returns the name of the field matched by this query.
|
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
getTermContexts, getTermContexts, rewriteprotected final SpanQuery match
public String getField()
SpanQuerypublic SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
SpanQuerycreateWeight in class SpanQuerysearcher - the IndexSearcher to be searched acrossneedsScores - if the query needs scoresIOException - on errorpublic String toString(String field)
Queryfield assumed to be the
default field and omitted.Copyright © 2000-2017 The Apache Software Foundation. All Rights Reserved.