Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
82 Field(
const String& name, ByteArray value, int32_t offset, int32_t length,
Store store);
140 virtual void setValue(ByteArray value, int32_t offset, int32_t length);
Field(const String &name, const String &value, Store store, Index index, TermVector termVector)
Create a field by specifying its name, value and how it will be saved in the index.
static bool isStored(Store store)
Specifies whether and how a field should be stored.
Field(const String &name, const ReaderPtr &reader)
Create a tokenized and indexed field that is not stored. Term vectors will not be stored....
virtual void setValue(const String &value)
Change the value of this field. This can be used during indexing to re-use a single Field instance to...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual bool isStored()
True if the value of the field is to be stored in the index for return with search hits....
void ConstructField(const String &name, const ReaderPtr &reader, TermVector termVector)
Field(const String &name, const ReaderPtr &reader, TermVector termVector)
Create a tokenized and indexed field that is not stored, optionally with storing term vectors....
static bool withPositions(TermVector termVector)
Field(const String &name, ByteArray value, Store store)
Create a stored field with binary value. Optionally the value may be compressed.
static bool omitNorms(Index index)
boost::shared_ptr< Reader > ReaderPtr
Definition: LuceneTypes.h:547
static Field::Index toIndex(bool indexed, bool analyzed)
Get the best representation of the index given the flags.
Definition: AbstractField.h:14
Field(const String &name, const TokenStreamPtr &tokenStream, TermVector termVector)
Create a tokenized and indexed field that is not stored, optionally with storing term vectors....
virtual void setValue(ByteArray value, int32_t offset, int32_t length)
Change the value of this field.
static bool isAnalyzed(Index index)
Definition: AbstractAllTermDocs.h:12
void ConstructField(const String &name, const TokenStreamPtr &tokenStream, TermVector termVector)
virtual String stringValue()
The value of the field as a String, or null. If null, the Reader value or binary value is used....
virtual void setValue(const ReaderPtr &value)
Change the value of this field.
virtual TokenStreamPtr tokenStreamValue()
The value of the field as a TokesStream, or null. If null, the Reader value or String value is analyz...
static bool isStored(TermVector termVector)
Specifies whether and how a field should have term vectors.
virtual bool isIndexed()
True if the value of the field is to be indexed, so that it may be searched on.
Store
Specifies whether and how a field should be stored.
Definition: AbstractField.h:17
void ConstructField(const String &name, ByteArray value, int32_t offset, int32_t length, Store store)
Field(const String &name, const TokenStreamPtr &tokenStream)
Create a tokenized and indexed field that is not stored. Term vectors will not be stored....
Field(const String &name, ByteArray value, int32_t offset, int32_t length, Store store)
Create a stored field with binary value. Optionally the value may be compressed.
static bool isIndexed(Index index)
Specifies whether and how a field should be indexed.
virtual void setTokenStream(const TokenStreamPtr &tokenStream)
Sets the token stream to be used for indexing and causes isIndexed() and isTokenized() to return true...
void ConstructField(const String &name, const String &value, Store store, Index index, TermVector termVector)
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
static Field::Index toIndex(bool indexed, bool analyzed, bool omitNorms)
Get the best representation of the index given the flags.
static Field::TermVector toTermVector(bool stored, bool withOffsets, bool withPositions)
Get the best representation of the index given the flags.
static bool withOffsets(TermVector termVector)
Index
Specifies whether and how a field should be indexed.
Definition: AbstractField.h:28
virtual ReaderPtr readerValue()
The value of the field as a Reader, or null. If null, the String value or binary value is used....
Field(const String &name, const String &value, Store store, Index index)
Create a field by specifying its name, value and how it will be saved in the index....
TermVector
Specifies whether and how a field should have term vectors.
Definition: AbstractField.h:57
virtual void setValue(ByteArray value)
Change the value of this field.
clucene.sourceforge.net