public class SpanNotQuery extends SpanQuery
Modifier and Type | Field and Description |
---|---|
private SpanQuery |
exclude |
private SpanQuery |
include |
Constructor and Description |
---|
SpanNotQuery(SpanQuery include,
SpanQuery exclude)
Construct a SpanNotQuery matching spans from
include which
have no overlap with spans from exclude . |
Modifier and Type | Method and Description |
---|---|
SpanQuery |
getExclude()
Return the SpanQuery whose matches must not overlap those returned.
|
String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getInclude()
Return the SpanQuery whose matches are filtered.
|
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 SpanQuery getInclude()
public SpanQuery getExclude()
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