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

Loading...
Searching...
No Matches
Filter.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 FILTER_H
8#define FILTER_H
9
10#include "LuceneObject.h"
11
12 namespace Lucene {
13
15 class LPPAPI Filter : public LuceneObject {
16 public:
17 virtual ~Filter();
18 LUCENE_CLASS(Filter);
19
20 public:
35 virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader) = 0;
36};
37
38}
39
40#endif
LuceneObject.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::Filter::getDocIdSet
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)=0
Creates a DocIdSet enumerating the documents that should be permitted in search results.
Lucene::Filter::~Filter
virtual ~Filter()
Lucene::LuceneObject
Base class for all Lucene classes.
Definition LuceneObject.h:31
Lucene
Definition AbstractAllTermDocs.h:12
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