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


Loading...
Searching...
No Matches
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
12namespace Lucene {
13
14class FieldInfo : public LuceneObject {
15public:
16 FieldInfo(const String& na, bool tk, int32_t nu, bool storeTermVector, bool storePositionWithTermVector,
18 virtual ~FieldInfo();
19
21
22public:
23 String name;
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
37public:
39
42};
43
44}
45
46#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Definition FieldInfo.h:14
bool storeOffsetWithTermVector
Definition FieldInfo.h:29
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Return clone of this object.
FieldInfo(const String &na, bool tk, int32_t nu, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
bool storeTermVector
Definition FieldInfo.h:28
bool omitNorms
Definition FieldInfo.h:32
bool storePayloads
Definition FieldInfo.h:35
int32_t number
Definition FieldInfo.h:25
String name
Definition FieldInfo.h:23
virtual ~FieldInfo()
bool omitTermFreqAndPositions
Definition FieldInfo.h:33
bool isIndexed
Definition FieldInfo.h:24
bool storePositionWithTermVector
Definition FieldInfo.h:30
void update(bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539

clucene.sourceforge.net