Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
MultiTermQueryWrapperFilter.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef MULTITERMQUERYWRAPPERFILTER_H
8#define MULTITERMQUERYWRAPPERFILTER_H
9
10#include "Filter.h"
11
12 namespace Lucene {
13
22 class LPPAPI MultiTermQueryWrapperFilter : public Filter {
23INTERNAL:
25 MultiTermQueryWrapperFilter(const MultiTermQueryPtr& query);
26
27 public:
28 virtual ~MultiTermQueryWrapperFilter();
29
30 LUCENE_CLASS(MultiTermQueryWrapperFilter);
31
32 protected:
33 MultiTermQueryPtr query;
34
35 public:
36 virtual String toString();
37 virtual bool equals(const LuceneObjectPtr& other);
38 virtual int32_t hashCode();
39
47 int32_t getTotalNumberOfTerms();
48
51 void clearTotalNumberOfTerms();
52
54 virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader);
55};
56
57}
58
59#endif
Filter.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::Filter
Abstract base class for restricting which documents may be returned during searching.
Definition Filter.h:15
Lucene::MultiTermQueryWrapperFilter
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition MultiTermQueryWrapperFilter.h:22
Lucene::MultiTermQueryWrapperFilter::query
MultiTermQueryPtr query
Definition MultiTermQueryWrapperFilter.h:33
Lucene::MultiTermQueryWrapperFilter::getTotalNumberOfTerms
int32_t getTotalNumberOfTerms()
Return the number of unique terms visited during execution of the filter. If there are many of them,...
Lucene::MultiTermQueryWrapperFilter::clearTotalNumberOfTerms
void clearTotalNumberOfTerms()
Resets the counting of unique terms. Do this before executing the filter.
Lucene::MultiTermQueryWrapperFilter::getDocIdSet
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Returns a DocIdSet with documents that should be permitted in search results.
Lucene::MultiTermQueryWrapperFilter::hashCode
virtual int32_t hashCode()
Return hash code for this object.
Lucene::MultiTermQueryWrapperFilter::equals
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Lucene::MultiTermQueryWrapperFilter::toString
virtual String toString()
Returns a string representation of the object.
Lucene::MultiTermQueryWrapperFilter::~MultiTermQueryWrapperFilter
virtual ~MultiTermQueryWrapperFilter()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::MultiTermQueryPtr
boost::shared_ptr< MultiTermQuery > MultiTermQueryPtr
Definition LuceneTypes.h:389
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition LuceneTypes.h:323
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net