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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

MapFieldSelector.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 MAPFIELDSELECTOR_H
8 #define MAPFIELDSELECTOR_H
9
10 #include "FieldSelector.h"
11
12 namespace Lucene {
13
14 typedef HashMap<String, FieldSelector::FieldSelectorResult> MapStringFieldSelectorResult;
15
17 class LPPAPI MapFieldSelector : public FieldSelector {
18 public:
21 MapFieldSelector(MapStringFieldSelectorResult fieldSelections);
22
25 MapFieldSelector(Collection<String> fields);
26
27 virtual ~MapFieldSelector();
28
29 LUCENE_CLASS(MapFieldSelector);
30
31 public:
32 MapStringFieldSelectorResult fieldSelections;
33
34 public:
38 virtual FieldSelectorResult accept(const String& fieldName);
39 };
40
41 }
42
43 #endif
Lucene::MapFieldSelector
A FieldSelector based on a Map of field names to FieldSelectorResults.
Definition: MapFieldSelector.h:17
Lucene::HashMap< String, FieldSelector::FieldSelectorResult >
Lucene::MapStringFieldSelectorResult
HashMap< String, FieldSelector::FieldSelectorResult > MapStringFieldSelectorResult
Definition: MapFieldSelector.h:14
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FieldSelector
The FieldSelector allows one to make decisions about what Fields get loaded on a Document by IndexRea...
Definition: FieldSelector.h:16
FieldSelector.h
Lucene::Collection< String >
Lucene::FieldSelector::FieldSelectorResult
FieldSelectorResult
Provides information about what should be done with this Field.
Definition: FieldSelector.h:27

clucene.sourceforge.net