public class SpanQueryFilter extends SpanFilter
QueryWrapperFilter. Namely,
the position information for each matching document is stored.
This filter does not cache. See the CachingSpanFilter for a wrapper that
caches.| Modifier | Constructor and Description |
|---|---|
protected |
SpanQueryFilter() |
|
SpanQueryFilter(SpanQuery query)
Constructs a filter which only matches documents matching
query. |
| Modifier and Type | Method and Description |
|---|---|
SpanFilterResult |
bitSpans(IndexReader reader)
Returns a SpanFilterResult with true for documents which should be permitted in
search results, and false for those that should not and Spans for where the true docs match.
|
boolean |
equals(java.lang.Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
SpanQuery |
getQuery() |
int |
hashCode() |
java.lang.String |
toString() |
protected SpanQuery query
public DocIdSet getDocIdSet(IndexReader reader) throws java.io.IOException
getDocIdSet in class Filterjava.io.IOExceptionDocIdBitSetpublic SpanFilterResult bitSpans(IndexReader reader) throws java.io.IOException
SpanFilterbitSpans in class SpanFilterreader - The IndexReader to load position and DocIdSet information fromSpanFilterResultjava.io.IOException - if there was an issue accessing the necessary informationpublic SpanQuery getQuery()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.