Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
80 void add(
const String& name,
bool isIndexed);
86 void add(
const String& name,
bool isIndexed,
bool storeTermVector);
96 void add(
const String& name,
bool isIndexed,
bool storeTermVector,
bool storePositionWithTermVector,
bool storeOffsetWithTermVector);
107 void add(
const String& name,
bool isIndexed,
bool storeTermVector,
bool storePositionWithTermVector,
108 bool storeOffsetWithTermVector,
bool omitNorms);
121 FieldInfoPtr add(
const String& name,
bool isIndexed,
bool storeTermVector,
bool storePositionWithTermVector,
122 bool storeOffsetWithTermVector,
bool omitNorms,
bool storePayloads,
bool omitTermFreqAndPositions);
144 bool storeOffsetWithTermVector,
bool omitNorms,
bool storePayloads,
bool omitTermFreqAndPositions);
FieldInfos(const DirectoryPtr &d, const String &name)
Construct a FieldInfos object using the directory and the name of the file IndexInput.
void add(const String &name, bool isIndexed)
Calls 5 parameter add with false for all TermVector parameters.
static const uint8_t STORE_PAYLOADS
Definition: FieldInfos.h:45
FieldInfoPtr fieldInfo(int32_t fieldNumber)
Return the fieldinfo object referenced by the fieldNumber.
static const uint8_t OMIT_TERM_FREQ_AND_POSITIONS
Definition: FieldInfos.h:46
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
static const uint8_t STORE_POSITIONS_WITH_TERMVECTOR
Definition: FieldInfos.h:42
static const uint8_t OMIT_NORMS
Definition: FieldInfos.h:44
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
static const uint8_t STORE_TERMVECTOR
Definition: FieldInfos.h:41
void add(const DocumentPtr &doc)
Adds field info for a Document.
int32_t fieldNumber(const String &fieldName)
static const int32_t FORMAT_PRE
Definition: FieldInfos.h:29
static const int32_t FORMAT_START
Definition: FieldInfos.h:36
Access to the Fieldable Info file that describes document fields and whether or not they are indexed....
Definition: FieldInfos.h:18
String fieldName(int32_t fieldNumber)
Return the fieldName identified by its number.
void add(const String &name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag i...
int32_t format
Definition: FieldInfos.h:51
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
void add(const String &name, bool isIndexed, bool storeTermVector)
Calls 5 parameter add with false for term vector positions and offsets.
FieldInfoPtr add(const String &name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag i...
Base class for all Lucene classes.
Definition: LuceneObject.h:31
void add(HashSet< String > names, bool isIndexed)
Assumes the fields are not storing term vectors.
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
Collection< FieldInfoPtr > byNumber
Definition: FieldInfos.h:49
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a deep clone of this FieldInfos instance.
FieldInfoPtr addInternal(const String &name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool omitNorms, bool storePayloads, bool omitTermFreqAndPositions)
FieldInfoPtr fieldInfo(const String &fieldName)
bool hasProx()
Returns true if any fields do not omitTermFreqAndPositions.
static const uint8_t STORE_OFFSET_WITH_TERMVECTOR
Definition: FieldInfos.h:43
static const int32_t CURRENT_FORMAT
Definition: FieldInfos.h:38
MapStringFieldInfo byName
Definition: FieldInfos.h:50
void write(const DirectoryPtr &d, const String &name)
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
void add(const String &name, bool isIndexed, bool storeTermVector, bool storePositionWithTermVector, bool storeOffsetWithTermVector)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag i...
static const uint8_t IS_INDEXED
Definition: FieldInfos.h:40
void addIndexed(HashSet< String > names, bool storeTermVectors, bool storePositionWithTermVector, bool storeOffsetWithTermVector)
Add fields that are indexed. Whether they have termvectors has to be specified.
void write(const IndexOutputPtr &output)
void read(const IndexInputPtr &input, const String &fileName)
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net