public class SpanExactQuery extends SpanQuery
| Constructor and Description |
|---|
SpanExactQuery(SpanQuery[] clauses)
Construct an exact query on a set of clauses.
|
| Modifier and Type | Method and Description |
|---|---|
SpanQuery[] |
getClauses()
Return the clauses whose spans are matched.
|
String |
getField()
Returns the name of the field matched by this query.
|
Spans |
getSpans(IndexReader reader,
Searcher searcher)
Iterate all the spans from the text query that match the sectionType
query also.
|
Query[] |
getSubQueries()
Return all the sub-queries (clauses in our case)
|
Collection |
getTerms()
Returns a collection of all terms matched by this query.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
createWeight, getSpanRecording, setSpanRecordingprivate SpanQuery[] clauses
public SpanExactQuery(SpanQuery[] clauses)
clauses - Clauses to match.public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOExceptionpublic SpanQuery[] getClauses()
public Query[] getSubQueries()
public Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
public String getField()
SpanQuerypublic Collection getTerms()
SpanQuerypublic String toString(String field)
toString in class Query