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, setSpanRecording
private SpanQuery[] clauses
public SpanExactQuery(SpanQuery[] clauses)
clauses
- Clauses to match.public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public SpanQuery[] getClauses()
public Query[] getSubQueries()
public Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
public String getField()
SpanQuery
public Collection getTerms()
SpanQuery
public String toString(String field)
toString
in class Query