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:
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
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::MultiTermQueryPtr
boost::shared_ptr< MultiTermQuery > MultiTermQueryPtr
Definition: LuceneTypes.h:389
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::MultiTermQueryWrapperFilter
A wrapper for MultiTermQuery, that exposes its functionality as a Filter.
Definition: MultiTermQueryWrapperFilter.h:22
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
Lucene::Filter
Abstract base class for restricting which documents may be returned during searching.
Definition: Filter.h:15
Filter.h

clucene.sourceforge.net