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:
24 
26 
28 
29 protected:
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
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
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
virtual String toString()
Returns a string representation of the object.
QueryWrapperFilter(const QueryPtr &query)
Constructs a filter which only matches documents matching query.
QueryPtr query
Definition: QueryWrapperFilter.h:27
virtual int32_t hashCode()
Return hash code for this object.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Creates a DocIdSet enumerating the documents that should be permitted in search results.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157

clucene.sourceforge.net