public class SpanChunkedNotQuery extends SpanQuery
| Modifier and Type | Field and Description |
|---|---|
private int |
chunkBump |
private SpanQuery |
exclude |
private SpanQuery |
include |
private int |
slop |
| Constructor and Description |
|---|
SpanChunkedNotQuery(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) |
void |
setSlop(int slop,
int chunkBump)
Set the distance that must separate matches from excluded spans.
|
String |
toString(String field) |
createWeight, getSpanRecording, setSpanRecordingprivate SpanQuery include
private SpanQuery exclude
private int slop
private int chunkBump
public SpanQuery getInclude()
public SpanQuery getExclude()
public void setSlop(int slop,
int chunkBump)
public int getSlop()
public String getField()
SpanQuerypublic Collection getTerms()
SpanQuerypublic Query[] getSubQueries()
public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOExceptionpublic String toString(String field)
toString in class Query