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


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

clucene.sourceforge.net