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

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

- File List
- Globals

FieldInfo.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 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,
17 bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions);
18 virtual ~FieldInfo();
19
20 LUCENE_CLASS(FieldInfo);
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
28 bool storeTermVector;
29 bool storeOffsetWithTermVector;
30 bool storePositionWithTermVector;
31
32 bool omitNorms; // omit norms associated with indexed fields
33 bool omitTermFreqAndPositions;
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
Lucene::FieldInfo::clone
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Return clone of this object.
Lucene::FieldInfo::isIndexed
bool isIndexed
Definition: FieldInfo.h:24
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene::FieldInfo::storeOffsetWithTermVector
bool storeOffsetWithTermVector
Definition: FieldInfo.h:29
Lucene::FieldInfo::number
int32_t number
Definition: FieldInfo.h:25
LuceneObject.h
Lucene::FieldInfo::update
void update(bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
Lucene::FieldInfo::omitNorms
bool omitNorms
Definition: FieldInfo.h:32
Lucene::FieldInfo::FieldInfo
FieldInfo(const String &na, bool tk, int32_t nu, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
Lucene::FieldInfo
Definition: FieldInfo.h:14
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FieldInfo::~FieldInfo
virtual ~FieldInfo()
Lucene::FieldInfo::storePositionWithTermVector
bool storePositionWithTermVector
Definition: FieldInfo.h:30
Lucene::FieldInfo::storeTermVector
bool storeTermVector
Definition: FieldInfo.h:28
Lucene::FieldInfo::name
String name
Definition: FieldInfo.h:20
Lucene::FieldInfo::storePayloads
bool storePayloads
Definition: FieldInfo.h:35
Lucene::FieldInfo::omitTermFreqAndPositions
bool omitTermFreqAndPositions
Definition: FieldInfo.h:33

clucene.sourceforge.net