public class SpanOrQuery extends SpanQuery
Modifier and Type | Class and Description |
---|---|
private class |
SpanOrQuery.SpanQueue |
Modifier and Type | Field and Description |
---|---|
private List |
clauses |
private String |
field |
Constructor and Description |
---|
SpanOrQuery(SpanQuery[] clauses)
Construct a SpanOrQuery merging the provided 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)
Expert: Returns the matches for this query in an index.
|
Query[] |
getSubQueries() |
Collection |
getTerms()
Returns a collection of all terms matched by this query.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
createWeight, getSpanRecording, setSpanRecording
public SpanOrQuery(SpanQuery[] clauses)
public SpanQuery[] getClauses()
public String getField()
SpanQuery
public Collection getTerms()
SpanQuery
public Query[] getSubQueries()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public String toString(String field)
toString
in class Query