org.apache.lucene.search
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 |
---|---|
BitSet |
bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in
search results, and false for those that should not.
|
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) |
SpanQuery |
getQuery() |
int |
hashCode() |
String |
toString() |
protected SpanQuery query
public BitSet bits(IndexReader reader) throws IOException
Filter
bits
in class Filter
IOException
public SpanFilterResult bitSpans(IndexReader reader) throws IOException
SpanFilter
bitSpans
in class SpanFilter
reader
- The IndexReader
to load position and bitset information fromSpanFilterResult
IOException
- if there was an issue accessing the necessary informationpublic SpanQuery getQuery()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.