Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
83 virtual ByteArray
norms(
const String& field);
86 virtual void norms(
const String& field, ByteArray norms, int32_t offset);
132 virtual void doSetNorm(int32_t doc,
const String& field, uint8_t value);
134 virtual void doCommit(MapStringString commitUserData);
virtual bool isOptimized()
Checks is the index is optimized (if it has a single segment and no deletions). Not implemented in th...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual bool isDeleted(int32_t n)
Returns true if document n has been deleted.
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
virtual TermEnumPtr terms(const TermPtr &t)
Returns an enumeration of all terms starting at a given term.
virtual void norms(const String &field, ByteArray norms, int32_t offset)
Reads the byte-encoded normalization factor for the named field of every document.
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
virtual void doUndeleteAll()
Implements actual undeleteAll() in subclass.
Collection< int32_t > starts
Definition: MultiReader.h:29
virtual Collection< IndexReaderPtr > getSequentialSubReaders()
Returns the sequential sub readers that this reader is logically composed of.
boost::shared_ptr< TermVectorMapper > TermVectorMapperPtr
Definition: LuceneTypes.h:254
virtual TermEnumPtr terms()
Returns an enumeration of all the terms in the index.
virtual void doDelete(int32_t docNum)
Implements deletion of the document numbered docNum.
IndexReaderPtr doReopen(bool doClone)
If clone is true then we clone each of the subreaders.
virtual int32_t numDocs()
Returns the number of documents in this index.
virtual bool hasNorms(const String &field)
Returns true if there are norms stored for this field.
virtual bool hasDeletions()
Returns true if any documents have been deleted.
virtual Collection< TermFreqVectorPtr > getTermFreqVectors(int32_t docNumber)
Return an array of term frequency vectors for the specified document. The array contains a vector for...
MultiReader(Collection< IndexReaderPtr > subReaders, bool closeSubReaders=true)
Construct a MultiReader aggregating the named set of (sub)readers. Directory locking for delete,...
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
Definition: AbstractAllTermDocs.h:12
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Clones the subreaders. (see IndexReader#clone()).
MapStringByteArray normsCache
Definition: MultiReader.h:31
virtual TermPositionsPtr termPositions()
Returns an unpositioned TermPositions enumerator.
virtual void doCommit(MapStringString commitUserData)
Implements commit.
virtual void doSetNorm(int32_t doc, const String &field, uint8_t value)
Implements setNorm in subclass.
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
virtual int64_t getVersion()
Not implemented.
virtual ByteArray norms(const String &field)
Returns the byte-encoded normalization factor for the named field of every document.
virtual IndexReaderPtr reopen()
Tries to reopen the subreaders.
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
virtual int32_t maxDoc()
Returns one greater than the largest possible document number.
FieldOption
Constants describing field properties, for example used for IndexReader#getFieldNames(FieldOption).
Definition: IndexReader.h:48
virtual int32_t docFreq(const TermPtr &t)
Returns the number of documents containing the term t.
virtual DocumentPtr document(int32_t n, const FieldSelectorPtr &fieldSelector)
Get the Document at the n'th position. The FieldSelector may be used to determine what Fields to load...
virtual HashSet< String > getFieldNames(FieldOption fieldOption)
Get a list of unique field names that exist in this index and have the specified field option informa...
boost::shared_ptr< TermPositions > TermPositionsPtr
Definition: LuceneTypes.h:243
Collection< uint8_t > decrefOnClose
Definition: MultiReader.h:30
virtual bool isCurrent()
Checks recursively if all subreaders are up to date.
Collection< IndexReaderPtr > subReaders
Definition: MultiReader.h:25
virtual void doClose()
Implements close.
virtual void getTermFreqVector(int32_t docNumber, const TermVectorMapperPtr &mapper)
Map all the term vectors for all fields in a Document.
int32_t _numDocs
Definition: MultiReader.h:33
virtual void getTermFreqVector(int32_t docNumber, const String &field, const TermVectorMapperPtr &mapper)
Load the Term Vector into a user-defined data structure instead of relying on the parallel arrays of ...
An IndexReader which reads multiple indexes, appending their content.
Definition: MultiReader.h:15
boost::shared_ptr< FieldSelector > FieldSelectorPtr
Definition: LuceneTypes.h:77
virtual TermFreqVectorPtr getTermFreqVector(int32_t docNumber, const String &field)
Return a term frequency vector for the specified document and field. The returned vector contains ter...
int32_t _maxDoc
Definition: MultiReader.h:32
virtual TermDocsPtr termDocs()
Returns an unpositioned TermDocs enumerator.
bool _hasDeletions
Definition: MultiReader.h:34
int32_t readerIndex(int32_t n)
Find reader for doc n.
clucene.sourceforge.net