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


QueryWrapperFilter.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 QUERYWRAPPERFILTER_H
8 #define QUERYWRAPPERFILTER_H
9 
10 #include "Filter.h"
11 
12 namespace Lucene {
13 
20 class LPPAPI QueryWrapperFilter : public Filter {
21 public:
23  QueryWrapperFilter(const QueryPtr& query);
24 
25  virtual ~QueryWrapperFilter();
26 
28 
29 protected:
30  QueryPtr query;
31 
32 public:
33  virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader);
34  virtual String toString();
35  virtual bool equals(const LuceneObjectPtr& other);
36  virtual int32_t hashCode();
37 };
38 
39 }
40 
41 #endif
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Abstract base class for restricting which documents may be returned during searching.
Definition: Filter.h:15
Constrains search results to only match those which also match a provided query.
Definition: QueryWrapperFilter.h:20
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12

clucene.sourceforge.net