public class SpanNotNearQuery extends SpanQuery
Modifier and Type | Field and Description |
---|---|
private SpanQuery |
exclude |
private SpanQuery |
include |
private int |
slop |
Constructor and Description |
---|
SpanNotNearQuery(SpanQuery include,
SpanQuery exclude,
int slop)
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.
|
int |
getSlop()
Return the distance that must separate matches from excluded spans.
|
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
private SpanQuery include
private SpanQuery exclude
private int slop
public SpanQuery getInclude()
public SpanQuery getExclude()
public int getSlop()
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