org.apache.lucene.search
public class CachingSpanFilter extends SpanFilter
| Modifier and Type | Field and Description |
|---|---|
protected Map |
cache
A transient Filter cache.
|
protected SpanFilter |
filter |
| Constructor and Description |
|---|
CachingSpanFilter(SpanFilter filter) |
| 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) |
int |
hashCode() |
String |
toString() |
protected SpanFilter filter
protected transient Map cache
RemoteSearchable use
RemoteCachingWrapperFilter instead.public CachingSpanFilter(SpanFilter filter)
filter - Filter to cache results ofpublic BitSet bits(IndexReader reader) throws IOException
Filterbits in class FilterIOExceptionpublic SpanFilterResult bitSpans(IndexReader reader) throws IOException
SpanFilterbitSpans in class SpanFilterreader - The IndexReader to load position and bitset information fromSpanFilterResultIOException - if there was an issue accessing the necessary informationCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.