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(Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
SpanQuery |
getQuery() |
int |
hashCode() |
String |
toString() |
protected SpanQuery query
public DocIdSet getDocIdSet(IndexReader reader) throws IOException
getDocIdSet in class FilterIOExceptionDocIdBitSetpublic SpanFilterResult bitSpans(IndexReader reader) throws IOException
SpanFilterbitSpans in class SpanFilterreader - The IndexReader to load position and DocIdSet information fromSpanFilterResultIOException - if there was an issue accessing the necessary informationpublic SpanQuery getQuery()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.