Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
70 FIELD_OPTION_TERMVECTOR_WITH_POSITION_OFFSET
82 int32_t getRefCount();
228 static int64_t lastModified(
const DirectoryPtr& directory2);
234 static int64_t getCurrentVersion(
const DirectoryPtr& directory);
239 static MapStringString getCommitUserData(
const DirectoryPtr& directory);
254 virtual int64_t getVersion();
258 virtual MapStringString getCommitUserData();
274 virtual bool isCurrent();
279 virtual bool isOptimized();
301 virtual TermFreqVectorPtr getTermFreqVector(int32_t docNumber,
const String& field) = 0;
308 virtual void getTermFreqVector(int32_t docNumber,
const String& field,
const TermVectorMapperPtr& mapper) = 0;
322 virtual int32_t numDocs() = 0;
326 virtual int32_t maxDoc() = 0;
329 int32_t numDeletedDocs();
362 virtual bool isDeleted(int32_t n) = 0;
365 virtual bool hasDeletions() = 0;
368 virtual bool hasChanges();
371 virtual bool hasNorms(
const String& field);
376 virtual ByteArray norms(
const String& field) = 0;
381 virtual void norms(
const String& field, ByteArray norms, int32_t offset) = 0;
392 virtual void setNorm(int32_t doc,
const String& field, uint8_t value);
398 virtual void setNorm(int32_t doc,
const String& field,
double value);
413 virtual int32_t docFreq(
const TermPtr& t) = 0;
442 virtual void deleteDocument(int32_t docNum);
450 virtual int32_t deleteDocuments(
const TermPtr& term);
453 virtual void undeleteAll();
459 void flush(MapStringString commitUserData);
464 void commit(MapStringString commitUserData);
515 virtual int64_t getUniqueTermCount();
519 virtual int32_t getTermInfosIndexDivisor();
527 virtual void doSetNorm(int32_t doc,
const String& field, uint8_t value) = 0;
531 virtual void doDelete(int32_t docNum) = 0;
534 virtual void doUndeleteAll() = 0;
538 virtual void acquireWriteLock();
546 virtual void doCommit(MapStringString commitUserData) = 0;
549 virtual void doClose() = 0;
static const int32_t DEFAULT_TERMS_INDEX_DIVISOR
Definition: IndexReader.h:73
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< TermVectorMapper > TermVectorMapperPtr
Definition: LuceneTypes.h:254
@ FIELD_OPTION_INDEXED_WITH_TERMVECTOR
All fields which are indexed with termvectors enabled.
Definition: IndexReader.h:60
@ FIELD_OPTION_ALL
All fields.
Definition: IndexReader.h:50
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
An IndexReader which reads multiple, parallel indexes. Each index added must have the same number of ...
Definition: ParallelReader.h:26
An IndexReader which reads indexes with multiple segments.
Definition: DirectoryReader.h:19
Base class for all Lucene classes.
Definition: LuceneObject.h:31
@ FIELD_OPTION_UNINDEXED
All fields which are not indexed.
Definition: IndexReader.h:58
@ FIELD_OPTION_INDEXED_NO_TERMVECTOR
All fields which are indexed but don't have termvectors enabled.
Definition: IndexReader.h:62
boost::shared_ptr< TermEnum > TermEnumPtr
Definition: LuceneTypes.h:235
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
boost::shared_ptr< TermDocs > TermDocsPtr
Definition: LuceneTypes.h:236
@ FIELD_OPTION_TERMVECTOR_WITH_OFFSET
All fields with termvectors with offset values enabled.
Definition: IndexReader.h:68
IndexReader is an abstract class, providing an interface for accessing an index. Search of an index i...
Definition: IndexReader.h:39
boost::shared_ptr< TermFreqVector > TermFreqVectorPtr
Definition: LuceneTypes.h:237
@ FIELD_OPTION_OMIT_TERM_FREQ_AND_POSITIONS
All fields that omit tf.
Definition: IndexReader.h:56
@ FIELD_OPTION_STORES_PAYLOADS
All fields that store payloads.
Definition: IndexReader.h:54
FieldOption
Constants describing field properties, for example used for IndexReader#getFieldNames(FieldOption).
Definition: IndexReader.h:48
boost::shared_ptr< TermPositions > TermPositionsPtr
Definition: LuceneTypes.h:243
@ FIELD_OPTION_TERMVECTOR_WITH_POSITION
All fields with termvectors with position values enabled.
Definition: IndexReader.h:66
boost::shared_ptr< IndexDeletionPolicy > IndexDeletionPolicyPtr
Definition: LuceneTypes.h:153
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
@ FIELD_OPTION_TERMVECTOR
All fields with termvectors enabled. Please note that only standard termvector fields are returned.
Definition: IndexReader.h:64
bool _hasChanges
Definition: IndexReader.h:77
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
bool closed
Definition: IndexReader.h:76
int32_t refCount
Definition: IndexReader.h:78
boost::shared_ptr< IndexCommit > IndexCommitPtr
Definition: LuceneTypes.h:152
@ FIELD_OPTION_INDEXED
All indexed fields.
Definition: IndexReader.h:52
clucene.sourceforge.net