@Deprecated public class RemoteCachingWrapperFilter extends org.apache.lucene.search.Filter
Filter
s themselves on the remote end of an RMI connection.
The cache is keyed on Filter's hashCode(), so if it sees the same filter twice
it will reuse the original version.
NOTE: This does NOT cache the Filter bits, but rather the Filter itself.
Thus, this works hand-in-hand with CachingWrapperFilter
to keep both
file Filter cache and the Filter bits on the remote end, close to the searcher.
Usage:
To cache a result you must do something like
RemoteCachingWrapperFilter f = new RemoteCachingWrapperFilter(new CachingWrapperFilter(myFilter));
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.search.Filter |
filter
Deprecated.
|
Constructor and Description |
---|
RemoteCachingWrapperFilter(org.apache.lucene.search.Filter filter)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
Deprecated.
Uses the
FilterManager to keep the cache for a filter on the
searcher side of a remote connection. |
public RemoteCachingWrapperFilter(org.apache.lucene.search.Filter filter)
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOException
FilterManager
to keep the cache for a filter on the
searcher side of a remote connection.getDocIdSet
in class org.apache.lucene.search.Filter
reader
- the index reader for the FilterIOException