|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQuery
SpanQuery
SpanNotNearQuery
public class SpanNotNearQuery
Removes matches which from one SpanQuery which are too close to spans from another SpanQuery.
Field Summary | |
---|---|
private SpanQuery |
exclude
|
private SpanQuery |
include
|
private int |
slop
|
Constructor Summary | |
---|---|
SpanNotNearQuery(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)
|
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
Constructor Detail |
---|
public SpanNotNearQuery(SpanQuery include, SpanQuery exclude, int slop)
include
which
have no overlap with spans from exclude
.
Method Detail |
---|
public SpanQuery getInclude()
public SpanQuery getExclude()
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 |