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

Loading...
Searching...
No Matches
FieldCacheTermsFilter.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 FIELDCACHETERMSFILTER_H
8#define FIELDCACHETERMSFILTER_H
9
10#include "Filter.h"
11
12 namespace Lucene {
13
46 class LPPAPI FieldCacheTermsFilter : public Filter {
47 public:
48 FieldCacheTermsFilter(const String& field, Collection<String> terms);
49 virtual ~FieldCacheTermsFilter();
50
51 LUCENE_CLASS(FieldCacheTermsFilter);
52
53 protected:
54 String field;
55 Collection<String> terms;
56
57 public:
58 FieldCachePtr getFieldCache();
59
60 virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr& reader);
61};
62
63}
64
65#endif
Filter.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::FieldCacheTermsFilter
A Filter that only accepts documents whose single term value in the specified field is contained in t...
Definition FieldCacheTermsFilter.h:46
Lucene::FieldCacheTermsFilter::terms
Collection< String > terms
Definition FieldCacheTermsFilter.h:55
Lucene::FieldCacheTermsFilter::FieldCacheTermsFilter
FieldCacheTermsFilter(const String &field, Collection< String > terms)
Lucene::FieldCacheTermsFilter::~FieldCacheTermsFilter
virtual ~FieldCacheTermsFilter()
Lucene::FieldCacheTermsFilter::getFieldCache
FieldCachePtr getFieldCache()
Lucene::FieldCacheTermsFilter::field
String field
Definition FieldCacheTermsFilter.h:54
Lucene::FieldCacheTermsFilter::getDocIdSet
virtual DocIdSetPtr getDocIdSet(const IndexReaderPtr &reader)
Creates a DocIdSet enumerating the documents that should be permitted in search results.
Lucene::Filter
Abstract base class for restricting which documents may be returned during searching.
Definition Filter.h:15
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition LuceneTypes.h:323
Lucene::FieldCachePtr
boost::shared_ptr< FieldCache > FieldCachePtr
Definition LuceneTypes.h:334
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition LuceneTypes.h:157

clucene.sourceforge.net