Constrains search results to only match those which also match a provided query. Also provides position information about where each document matches at the cost of extra space compared with the QueryWrapperFilter. There is an added cost to this above what is stored in a QueryWrapperFilter
. Namely, the position information for each matching document is stored.
More...
#include <SpanQueryFilter.h>
Constrains search results to only match those which also match a provided query. Also provides position information about where each document matches at the cost of extra space compared with the QueryWrapperFilter. There is an added cost to this above what is stored in a QueryWrapperFilter
. Namely, the position information for each matching document is stored.
This filter does not cache. See the CachingSpanFilter
for a wrapper that caches.
◆ SpanQueryFilter()
Constructs a filter which only matches documents matching query.
- Parameters
-
◆ ~SpanQueryFilter()
virtual Lucene::SpanQueryFilter::~SpanQueryFilter |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::SpanQueryFilter::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ bitSpans()
◆ equals()
virtual bool Lucene::SpanQueryFilter::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
◆ getClassName()
virtual String Lucene::SpanQueryFilter::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getDocIdSet()
Creates a DocIdSet
enumerating the documents that should be permitted in search results.
Note: null can be returned if no documents are accepted by this Filter.
Note: This method will be called once per segment in the index during searching. The returned DocIdSet
must refer to document IDs for that segment, not for the top-level reader.
- Parameters
-
reader | a IndexReader instance opened on the index currently searched on. Note, it is likely that the provided reader does not represent the whole underlying index ie. if the index has more than one segment the given reader only represents a single segment. |
- Returns
- a DocIdSet that provides the documents which should be permitted or prohibited in search results. NOTE: null can be returned if no documents will be accepted by this Filter.
- See also
- DocIdBitSet
Implements Lucene::Filter.
◆ getQuery()
◆ hashCode()
virtual int32_t Lucene::SpanQueryFilter::hashCode |
( |
| ) |
|
|
virtual |
◆ shared_from_this()
boost::shared_ptr< SpanQueryFilter > Lucene::SpanQueryFilter::shared_from_this |
( |
| ) |
|
|
inline |
◆ toString()
virtual String Lucene::SpanQueryFilter::toString |
( |
| ) |
|
|
virtual |
◆ query
The documentation for this class was generated from the following file: