|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQuery
SpanQuery
SpanChunkedNotQuery
public class SpanChunkedNotQuery
Removes matches which overlap with another SpanQuery, taking into account overlap between adjacent chunks in a chunked index.
Field Summary | |
---|---|
private int |
chunkBump
|
private SpanQuery |
exclude
|
private SpanQuery |
include
|
private int |
slop
|
Constructor Summary | |
---|---|
SpanChunkedNotQuery(SpanQuery include,
SpanQuery exclude,
int slop)
Construct a SpanNotQuery matching spans from include which
have no overlap with spans from exclude . |
Method Summary | |
---|---|
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)
|
Methods inherited from class SpanQuery |
---|
createWeight, getSpanRecording, setSpanRecording |
Methods inherited from class Query |
---|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private SpanQuery include
private SpanQuery exclude
private int slop
private int chunkBump
Constructor Detail |
---|
public SpanChunkedNotQuery(SpanQuery include, SpanQuery exclude, int slop)
include
which
have no overlap with spans from exclude
.
Method Detail |
---|
public SpanQuery getInclude()
public SpanQuery getExclude()
public void setSlop(int slop, int chunkBump)
public int getSlop()
public String getField()
SpanQuery
getField
in class SpanQuery
public Collection getTerms()
SpanQuery
getTerms
in class 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
public Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
SpanQuery
getSpans
in class SpanQuery
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |