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


MultiTermQueryWrapperFilter.h
Go to the documentation of this file.
1 // 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 {
23 INTERNAL:
26 
27 public:
29 
31 
32 protected:
34 
35 public:
36  virtual String toString();
37  virtual bool equals(const LuceneObjectPtr& other);
38  virtual int32_t hashCode();
39 
48 
52 
54  virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader);
55 };
56 
57 }
58 
59 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Abstract base class for restricting which documents may be returned during searching.
Definition: Filter.h:15
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition: MultiTermQueryWrapperFilter.h:22
MultiTermQueryPtr query
Definition: MultiTermQueryWrapperFilter.h:30
int32_t getTotalNumberOfTerms()
Return the number of unique terms visited during execution of the filter. If there are many of them,...
void clearTotalNumberOfTerms()
Resets the counting of unique terms. Do this before executing the filter.
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Returns a DocIdSet with documents that should be permitted in search results.
virtual int32_t hashCode()
Return hash code for this object.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual String toString()
Returns a string representation of the object.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
boost::shared_ptr< MultiTermQuery > MultiTermQueryPtr
Definition: LuceneTypes.h:389
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157

clucene.sourceforge.net