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


Loading...
Searching...
No Matches
MapFieldSelector.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 MAPFIELDSELECTOR_H
8#define MAPFIELDSELECTOR_H
9
10#include "FieldSelector.h"
11
12namespace Lucene {
13
15
17class LPPAPI MapFieldSelector : public FieldSelector {
18public:
22
26
28
30
31public:
33
34public:
38 virtual FieldSelectorResult accept(const String& fieldName);
39};
40
41}
42
43#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
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 maps that can be safely copied and shared.
Definition HashMap.h:17
A FieldSelector based on a Map of field names to FieldSelectorResults.
Definition MapFieldSelector.h:17
MapFieldSelector(Collection< String > fields)
Create a MapFieldSelector.
MapStringFieldSelectorResult fieldSelections
Definition MapFieldSelector.h:32
MapFieldSelector(MapStringFieldSelectorResult fieldSelections)
Create a MapFieldSelector.
virtual FieldSelectorResult accept(const String &fieldName)
Load field according to its associated value in fieldSelections.
Definition AbstractAllTermDocs.h:12
HashMap< String, FieldSelector::FieldSelectorResult > MapStringFieldSelectorResult
Definition MapFieldSelector.h:14

clucene.sourceforge.net