Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef CACHINGSPANFILTER_H
8 #define CACHINGSPANFILTER_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Wraps another SpanFilter's result and caches it. The purpose is to allow filters to simply filter,...
Definition: CachingSpanFilter.h:17
@ DELETES_RECACHE
Definition: CachingWrapperFilter.h:30
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
virtual ~CachingSpanFilter()
virtual int32_t hashCode()
Return hash code for this object.
SpanFilterPtr filter
Definition: CachingSpanFilter.h:23
boost::shared_ptr< SpanFilterResult > SpanFilterResultPtr
Definition: LuceneTypes.h:445
virtual String toString()
Returns a string representation of the object.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Abstract base class providing a mechanism to restrict searches to a subset of an index and also maint...
Definition: SpanFilter.h:21
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
SpanFilterResultPtr getCachedResult(const IndexReaderPtr &reader)
int32_t missCount
Definition: CachingSpanFilter.h:32
DeletesMode
Specifies how new deletions against a reopened reader should be handled.
Definition: CachingWrapperFilter.h:30
CachingSpanFilter(const SpanFilterPtr &filter, CachingWrapperFilter::DeletesMode deletesMode=CachingWrapperFilter::DELETES_RECACHE)
New deletions always result in a cache miss, by default (CachingWrapperFilter#RECACHE.
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Creates a DocIdSet enumerating the documents that should be permitted in search results.
boost::shared_ptr< SpanFilter > SpanFilterPtr
Definition: LuceneTypes.h:444
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
virtual SpanFilterResultPtr bitSpans(const IndexReaderPtr &reader)
Returns a SpanFilterResult with true for documents which should be permitted in search results,...
int32_t hitCount
Definition: CachingSpanFilter.h:31
FilterCachePtr cache
Definition: CachingSpanFilter.h:27
boost::shared_ptr< FilterCache > FilterCachePtr
Definition: LuceneTypes.h:359
clucene.sourceforge.net