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


Loading...
Searching...
No Matches
SetBasedFieldSelector.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 SETBASEDFIELDSELECTOR_H
8#define SETBASEDFIELDSELECTOR_H
9
10#include "FieldSelector.h"
11
12namespace Lucene {
13
15class LPPAPI SetBasedFieldSelector : public FieldSelector {
16public:
21 SetBasedFieldSelector(HashSet<String> fieldsToLoad, HashSet<String> lazyFieldsToLoad);
22
24
26
27protected:
30
31public:
37 virtual FieldSelectorResult accept(const String& fieldName);
38};
39
40}
41
42#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
The FieldSelector allows one to make decisions about what Fields get loaded on a Document by IndexRea...
Definition FieldSelector.h:16
FieldSelectorResult
Provides information about what should be done with this Field.
Definition FieldSelector.h:27
Utility template class to handle hash set collections that can be safely copied and shared.
Definition HashSet.h:17
Declare what fields to load normally and what fields to load lazily.
Definition SetBasedFieldSelector.h:15
HashSet< String > fieldsToLoad
Definition SetBasedFieldSelector.h:28
virtual FieldSelectorResult accept(const String &fieldName)
Indicate whether to load the field with the given name or not. If the Field#name() is not in either o...
HashSet< String > lazyFieldsToLoad
Definition SetBasedFieldSelector.h:29
SetBasedFieldSelector(HashSet< String > fieldsToLoad, HashSet< String > lazyFieldsToLoad)
Pass in the Set of Field names to load and the Set of Field names to load lazily. If both are null,...
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net