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

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

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FieldInfo.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 FIELDINFO_H
8 #define FIELDINFO_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
14 class FieldInfo : public LuceneObject
15 {
16 public:
17 FieldInfo(const String& na, bool tk, int32_t nu, bool storeTermVector, bool storePositionWithTermVector,
18 bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions);
19 virtual ~FieldInfo();
20
21 LUCENE_CLASS(FieldInfo);
22
23 public:
24 String name;
25 bool isIndexed;
26 int32_t number;
27
28 // true if term vector for this field should be stored
29 bool storeTermVector;
30 bool storeOffsetWithTermVector;
31 bool storePositionWithTermVector;
32
33 bool omitNorms; // omit norms associated with indexed fields
34 bool omitTermFreqAndPositions;
35
36 bool storePayloads; // whether this field stores payloads together with term positions
37
38 public:
39 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
40
41 void update(bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector,
42 bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions);
43 };
44 }
45
46 #endif

clucene.sourceforge.net