Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
311 virtual bool isOpen(
bool includePendingClose);
561 virtual void close(
bool waitForMerges);
729 virtual void optimize(int32_t maxNumSegments,
bool doWait);
883 virtual void commit(MapStringString commitUserData);
986 virtual void maybeMerge(int32_t maxNumSegmentsOptimize,
bool optimize);
1044 virtual void flush(
bool triggerMerge,
bool flushDocStores,
bool flushDeletes);
1045 virtual bool doFlush(
bool flushDocStores,
bool flushDeletes);
1087 virtual void startCommit(int64_t sizeInBytes, MapStringString commitUserData);
1091 friend class ReaderPool;
virtual void ensureOpen()
virtual bool doFlush(bool flushDocStores, bool flushDeletes)
SetOneMerge runningMerges
Definition: IndexWriter.h:155
bool closing
Definition: IndexWriter.h:149
SegmentInfosPtr segmentInfos
Definition: IndexWriter.h:136
static InfoStreamPtr defaultInfoStream
Definition: IndexWriter.h:190
virtual void updateDocument(const TermPtr &term, const DocumentPtr &doc)
Updates a document by first deleting the document(s) containing term and then adding the new document...
virtual void flush(bool triggerMerge, bool flushDocStores, bool flushDeletes)
Flush all in-memory buffered updates (adds and deletes) to the Directory.
boost::shared_ptr< LogMergePolicy > LogMergePolicyPtr
Definition: LuceneTypes.h:172
virtual void closeInternal(bool waitForMerges)
virtual void close()
Commits all changes to an index and closes all associated files. Note that this may be a costly opera...
virtual bool commitMerge(const OneMergePtr &merge, const SegmentMergerPtr &merger, int32_t mergedDocCount, const SegmentReaderPtr &mergedReader)
virtual int32_t getBufferedDeleteTermsSize()
For test purposes.
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, bool create, const IndexDeletionPolicyPtr &deletionPolicy, int32_t mfl, const IndexingChainPtr &indexingChain, const IndexCommitPtr &commit)
InfoStreamPtr infoStream
Definition: IndexWriter.h:189
SegmentInfosPtr localRollbackSegmentInfos
Definition: IndexWriter.h:133
virtual IndexReaderPtr getReader()
Returns a read-only reader, covering all committed as well as un-committed changes to the index....
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual int32_t mergeMiddle(const OneMergePtr &merge)
Does the actual (time-consuming) work of the merge, but without holding synchronized lock on IndexWri...
virtual LuceneException handleMergeException(const LuceneException &exc, const OneMergePtr &merge)
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
virtual IndexReaderPtr getReader(int32_t termInfosIndexDivisor)
Like getReader, except you can specify which termInfosIndexDivisor should be used for any newly opene...
virtual bool doFlushInternal(bool flushDocStores, bool flushDeletes)
virtual void optimize(int32_t maxNumSegments)
Optimize the index down to <= maxNumSegments. If maxNumSegments==1 then this is the same as optimize(...
virtual void merge(const OneMergePtr &merge)
Merges the indicated segments, replacing them in the stack with a single segment.
static const int32_t MaxFieldLengthLIMITED
Sets the maximum field length to DEFAULT_MAX_FIELD_LENGTH.
Definition: IndexWriter.h:243
boost::shared_ptr< MergePolicy > MergePolicyPtr
Definition: LuceneTypes.h:174
virtual void setMergeScheduler(const MergeSchedulerPtr &mergeScheduler)
Set the merge scheduler used by this writer.
boost::shared_ptr< OneMerge > OneMergePtr
Definition: LuceneTypes.h:192
boost::shared_ptr< IndexFileDeleter > IndexFileDeleterPtr
Definition: LuceneTypes.h:154
virtual void mergeSuccess(const OneMergePtr &merge)
Hook that's called when the specified merge is complete.
int32_t termIndexInterval
Definition: IndexWriter.h:146
boost::shared_ptr< SegmentInfo > SegmentInfoPtr
Definition: LuceneTypes.h:208
virtual int32_t getFlushDeletesCount()
virtual void addDocument(const DocumentPtr &doc)
Adds a document to this index. If the document contains more than {} terms for a given field,...
Collection< OneMergePtr > mergeExceptions
Definition: IndexWriter.h:156
virtual void doAfterFlush()
A hook for extending classes to execute operations after pending added and deleted documents have bee...
virtual bool registerMerge(const OneMergePtr &merge)
Checks whether this merge involves any segments already participating in a merge. If not,...
virtual int32_t getReaderTermsIndexDivisor()
virtual void checkpoint()
Called whenever the SegmentInfos has been updated and the index files referenced exist (correctly) in...
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
IndexReaderWarmerPtr mergedSegmentWarmer
Definition: IndexWriter.h:195
virtual LuceneException handleOOM(const std::bad_alloc &oom, const String &location)
virtual void deleteDocuments(Collection< TermPtr > terms)
Deletes the document(s) containing any of the terms. All deletes are flushed at the same time.
static int64_t getDefaultWriteLockTimeout()
Returns default write lock timeout for newly instantiated IndexWriters.
SegmentInfosPtr rollbackSegmentInfos
Definition: IndexWriter.h:130
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
virtual void setMaxBufferedDocs(int32_t maxBufferedDocs)
Determines the minimal number of documents required before the buffered in-memory documents are flush...
virtual int64_t getWriteLockTimeout()
Returns allowed timeout when acquiring the write lock.
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
virtual int32_t numRamDocs()
Return the number of documents currently buffered in RAM.
virtual void setRollbackSegmentInfos(const SegmentInfosPtr &infos)
bool hitOOM
Definition: IndexWriter.h:115
virtual int64_t ramSizeInBytes()
Return the total size of all index files currently cached in memory. Useful for size management with ...
virtual void addIndexesNoOptimize(Collection< DirectoryPtr > dirs)
Merges all segments from an array of indexes into this index.
int32_t upgradeCount
Definition: IndexWriter.h:166
boost::shared_ptr< IndexReaderWarmer > IndexReaderWarmerPtr
Definition: LuceneTypes.h:158
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, int32_t mfl)
virtual bool verbose()
Returns true if verbosing is enabled (i.e., infoStream != null).
virtual int32_t getMaxMergeDocs()
Returns the largest segment (measured by document count) that may be merged with other segments.
virtual IndexReaderWarmerPtr getMergedSegmentWarmer()
Returns the current merged segment warmer. See IndexReaderWarmer.
virtual void close(bool waitForMerges)
Closes the index with or without waiting for currently running merges to finish. This is only meaning...
boost::shared_ptr< SegmentReader > SegmentReaderPtr
Definition: LuceneTypes.h:215
bool stopMerges
Definition: IndexWriter.h:158
virtual void closeMergeReaders(const OneMergePtr &merge, bool suppressExceptions)
static const String WRITE_LOCK_NAME
Definition: IndexWriter.h:211
virtual void rollbackInternal()
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
virtual void commit(MapStringString commitUserData)
Commits all changes to the index, specifying a commitUserData Map (String -> String)....
virtual void rollback()
Close the IndexWriter without committing any changes that have occurred since the last commit (or sin...
static const int32_t DEFAULT_MAX_BUFFERED_DOCS
Disabled by default (because IndexWriter flushes by RAM usage by default). Change using setMaxBuffere...
Definition: IndexWriter.h:218
virtual bool nrtIsCurrent(const SegmentInfosPtr &infos)
virtual OneMergePtr getNextExternalMerge()
Like getNextMerge() except only returns a merge if it's external.
static int64_t WRITE_LOCK_TIMEOUT
Default value for the write lock timeout (1,000).
Definition: IndexWriter.h:209
MapSegmentInfoInt rollbackSegments
Definition: IndexWriter.h:131
virtual void maybeMerge(int32_t maxNumSegmentsOptimize, bool optimize)
static void setDefaultWriteLockTimeout(int64_t writeLockTimeout)
Sets the default (for any instance of IndexWriter) maximum time to wait for a write lock (in millisec...
virtual DirectoryPtr getDirectory()
Returns the Directory used by this index.
virtual void deleteAll()
Delete all documents in the index.
virtual int32_t getNumBufferedDeleteTerms()
For test purposes.
virtual bool hasExternalSegments()
bool waitForAllSynced(HashSet< String > syncing)
Blocks until all files in syncing are sync'd.
virtual void optimize()
Requests an "optimize" operation on an index, priming the index for the fastest available search....
boost::shared_ptr< Analyzer > AnalyzerPtr
Definition: LuceneTypes.h:20
IndexFileDeleterPtr deleter
Definition: IndexWriter.h:139
int32_t readerTermsIndexDivisor
Definition: IndexWriter.h:168
MergeSchedulerPtr mergeScheduler
Definition: IndexWriter.h:153
int32_t localFlushedDocCount
Definition: IndexWriter.h:134
virtual void addMergeException(const OneMergePtr &merge)
int64_t mergeGen
Definition: IndexWriter.h:157
virtual void setMergePolicy(const MergePolicyPtr &mp)
Set the merge policy used by this writer.
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, const IndexDeletionPolicyPtr &deletionPolicy, int32_t mfl)
ReaderPoolPtr readerPool
Definition: IndexWriter.h:204
int32_t messageID
Definition: IndexWriter.h:114
virtual void setReaderTermsIndexDivisor(int32_t divisor)
Sets the termsIndexDivisor passed to any readers that IndexWriter opens, for example when applying de...
virtual MergeSchedulerPtr getMergeScheduler()
Returns the current MergePolicy in use by this writer.
boost::shared_ptr< Document > DocumentPtr
Definition: LuceneTypes.h:74
IndexingChainPtr indexingChain
Definition: IndexWriter.h:122
virtual int32_t getSegmentCount()
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< MergeScheduler > MergeSchedulerPtr
Definition: LuceneTypes.h:175
virtual bool hasDeletions()
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, const IndexDeletionPolicyPtr &deletionPolicy, int32_t mfl, const IndexCommitPtr &commit)
virtual int32_t getMaxBufferedDocs()
Returns the number of buffered added documents that will trigger a flush if enabled.
int64_t writeLockTimeout
Definition: IndexWriter.h:102
IndexDeletionPolicyPtr deletionPolicy
Definition: IndexWriter.h:121
static const double DEFAULT_RAM_BUFFER_SIZE_MB
Default value is 16 MB (which means flush when buffered docs consume 16 MB RAM). Change using setRAMB...
Definition: IndexWriter.h:222
virtual double getRAMBufferSizeMB()
Returns the value set by setRAMBufferSizeMB if enabled.
static void setDefaultInfoStream(const InfoStreamPtr &infoStream)
If non-null, this will be the default infoStream used by a newly instantiated IndexWriter.
virtual SegmentInfoPtr newestSegment()
Utility routines for tests.
virtual int32_t numDocs()
Returns total number of docs in this index, including docs not yet flushed (still in the RAM buffer),...
boost::shared_ptr< ReaderPool > ReaderPoolPtr
Definition: LuceneTypes.h:203
Base class for all Lucene classes.
Definition: LuceneObject.h:31
AnalyzerPtr analyzer
Definition: IndexWriter.h:118
virtual void deleteDocuments(Collection< QueryPtr > queries)
Deletes the document(s) matching any of the provided queries. All deletes are flushed at the same tim...
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
virtual SimilarityPtr getSimilarity()
Return the Similarity implementation used by this IndexWriter. This defaults to the current value of ...
bool poolReaders
Definition: IndexWriter.h:175
static InfoStreamPtr getDefaultInfoStream()
Returns the current default infoStream for newly instantiated IndexWriters.
virtual void resetMergeExceptions()
virtual void releaseRead()
virtual OneMergePtr getNextMerge()
The MergeScheduler calls this method to retrieve the next merge requested by the MergePolicy.
virtual void mergeInit(const OneMergePtr &merge)
Does initial setup for a merge, which is fast but holds the synchronized lock on IndexWriter instance...
virtual void pushMaxBufferedDocs()
If we are flushing by doc count (not by RAM usage), and using LogDocMergePolicy then push maxBuffered...
virtual void noDupDirs(Collection< DirectoryPtr > dirs)
boost::shared_ptr< Synchronize > SynchronizePtr
Definition: LuceneTypes.h:552
virtual void maybeMerge(bool optimize)
virtual ~IndexReaderWarmer()
virtual void setUseCompoundFile(bool value)
Setting to turn on usage of a compound file. When on, multiple files for each segment are merged into...
virtual bool testPoint(const String &name)
Used only by assert for testing. Current points: startDoFlush startCommitMerge startStartCommit midSt...
SetSegmentInfo segmentsToOptimize
Definition: IndexWriter.h:141
static const int32_t DEFAULT_TERM_INDEX_INTERVAL
Default value is 128. Change using setTermIndexInterval(int32_t).
Definition: IndexWriter.h:232
int32_t flushDeletesCount
Definition: IndexWriter.h:161
virtual void rollbackTransaction()
Rolls back the transaction and restores state to where we were at the start.
SynchronizePtr commitLock
Used only by commit; lock order is commitLock -> IW.
Definition: IndexWriter.h:198
virtual void deleteDocuments(const TermPtr &term)
Deletes the document(s) containing term.
virtual void messageState()
virtual int32_t numDeletedDocs(const SegmentInfoPtr &info)
Obtain the number of deleted docs for a pooled reader. If the reader isn't being pooled,...
virtual InfoStreamPtr getInfoStream()
Returns the current infoStream in use by this writer.
int64_t lastCommitChangeCount
Definition: IndexWriter.h:128
virtual void startCommit(int64_t sizeInBytes, MapStringString commitUserData)
Walk through all files referenced by the current segmentInfos and ask the Directory to sync each file...
static const int32_t DISABLE_AUTO_FLUSH
Value to denote a flush trigger is disabled.
Definition: IndexWriter.h:214
virtual void commit()
Commits all pending changes (added & deleted documents, optimizations, segment merges,...
virtual AnalyzerPtr getAnalyzer()
Returns the analyzer used by this index.
virtual void commit(int64_t sizeInBytes)
virtual void upgradeReadToWrite()
Allows one readLock to upgrade to a writeLock even if there are other readLocks as long as all other ...
bool create
Definition: IndexWriter.h:120
virtual void setSimilarity(const SimilarityPtr &similarity)
Set the Similarity implementation used by this IndexWriter.
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, bool create, const IndexDeletionPolicyPtr &deletionPolicy, int32_t mfl)
virtual void setMergeFactor(int32_t mergeFactor)
Determines how often segment indices are merged by addDocument(). With smaller values,...
virtual void commitTransaction()
Commits the transaction. This will write the new segments file and remove and pending deletions we ha...
virtual void doBeforeFlush()
A hook for extending classes to execute operations before pending added and deleted documents are flu...
virtual int32_t getDocCount(int32_t i)
boost::shared_ptr< SegmentMerger > SegmentMergerPtr
Definition: LuceneTypes.h:214
SetSegmentInfo mergingSegments
Definition: IndexWriter.h:151
virtual void finishMerges(bool waitForMerges)
virtual MergePolicyPtr getMergePolicy()
Returns the current MergePolicy in use by this writer.
virtual void maybeMerge()
Asks the mergePolicy whether any merges are necessary now and if so, runs the requested merges and th...
If getReader has been called (ie, this writer is in near real-time mode), then after a merge complete...
Definition: IndexWriter.h:1100
int32_t optimizeMaxNumSegments
Definition: IndexWriter.h:142
virtual void deleteDocuments(const QueryPtr &query)
Deletes the document(s) matching the provided query.
static void unlock(const DirectoryPtr &directory)
Forcibly unlocks the index in the named directory. Caution: this should only be used by failure recov...
bool closed
Definition: IndexWriter.h:148
virtual void resolveExternalSegments()
If any of our segments are using a directory != ours then we have to either copy them over one by one...
SynchronizePtr messageIDLock
Definition: IndexWriter.h:112
int64_t writeThread
Definition: IndexWriter.h:165
static int32_t MESSAGE_ID
Definition: IndexWriter.h:113
Lucene exception container.
Definition: LuceneException.h:15
virtual int32_t maxDoc()
Returns total number of docs in this index, including docs not yet flushed (still in the RAM buffer),...
virtual void setMaxMergeDocs(int32_t maxMergeDocs)
Determines the largest segment (measured by document count) that may be merged with other segments....
virtual void setMergedSegmentWarmer(const IndexReaderWarmerPtr &warmer)
Set the merged segment warmer. See IndexReaderWarmer.
boost::shared_ptr< IndexDeletionPolicy > IndexDeletionPolicyPtr
Definition: LuceneTypes.h:153
SimilarityPtr similarity
Definition: IndexWriter.h:125
int32_t maxFieldLength
The maximum number of terms that will be indexed for a single field in a document....
Definition: IndexWriter.h:187
virtual void startTransaction(bool haveReadLock)
Begin a transaction. During a transaction, any segment merges that happen (or ram segments flushed) w...
static const int32_t DEFAULT_MAX_FIELD_LENGTH
Default value is 10,000. Change using setMaxFieldLength(int32_t).
Definition: IndexWriter.h:229
static bool isLocked(const DirectoryPtr &directory)
Returns true if the index in the named directory is currently locked.
virtual void resumeAddIndexes()
virtual void blockAddIndexes(bool includePendingClose)
virtual String newSegmentName()
virtual void ensureOpen(bool includePendingClose)
virtual int32_t ensureContiguousMerge(const OneMergePtr &merge)
virtual void releaseWrite()
virtual bool shouldClose()
Returns true if this thread should attempt to close, or false if IndexWriter is now closed; else,...
boost::shared_ptr< SegmentInfos > SegmentInfosPtr
Definition: LuceneTypes.h:210
MergePolicyPtr mergePolicy
Definition: IndexWriter.h:152
static const int32_t MERGE_READ_BUFFER_SIZE
The normal read buffer size defaults to 1024, but increasing this during merging seems to yield perfo...
Definition: IndexWriter.h:110
virtual void setMergeDocStoreIsCompoundFile(const OneMergePtr &merge)
virtual bool isOpen(bool includePendingClose)
virtual void acquireRead()
LockPtr writeLock
Definition: IndexWriter.h:144
virtual String segString(const SegmentInfosPtr &infos)
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
DirectoryPtr directory
Definition: IndexWriter.h:117
virtual String segString()
virtual int32_t getMaxFieldLength()
Returns the maximum number of terms that will be indexed for a single field in a document.
virtual int32_t getMaxBufferedDeleteTerms()
Returns the number of buffered deleted terms that will trigger a flush if enabled.
virtual bool startSync(const String &fileName, HashSet< String > pending)
static int32_t MAX_TERM_LENGTH()
Absolute hard maximum length for a term. If a term arrives from the analyzer longer than this length,...
virtual void waitForMerges()
Wait for any currently outstanding merges to finish.
virtual bool applyDeletes()
Apply buffered deletes to all segments.
virtual void finishAddIndexes()
virtual void expungeDeletes()
Expunges all deletes from the index. When an index has many document deletions (or updates to existin...
boost::shared_ptr< InfoStream > InfoStreamPtr
Definition: LuceneTypes.h:532
virtual bool flushDocStores()
Tells the docWriter to close its currently open shared doc stores (stored fields & vectors files)....
virtual void setRAMBufferSizeMB(double mb)
Determines the amount of RAM that may be used for buffering added documents and deletions before they...
virtual int32_t getMergeFactor()
Returns the number of segments that are merged at once and also controls the total number of segments...
HashSet< String > syncing
Definition: IndexWriter.h:193
virtual void expungeDeletes(bool doWait)
Just like expungeDeletes(), except you can specify whether the call should block until the operation ...
Collection< OneMergePtr > pendingMerges
Definition: IndexWriter.h:154
virtual void addDocument(const DocumentPtr &doc, const AnalyzerPtr &analyzer)
Adds a document to this index, using the provided analyzer instead of the value of {}....
virtual void setMaxBufferedDeleteTerms(int32_t maxBufferedDeleteTerms)
Determines the minimal number of delete terms required before the buffered in-memory delete terms are...
An IndexWriter creates and maintains an index.
Definition: IndexWriter.h:90
virtual void setWriteLockTimeout(int64_t writeLockTimeout)
Sets the maximum time to wait for a write lock (in milliseconds) for this instance of IndexWriter.
virtual void updateDocument(const TermPtr &term, const DocumentPtr &doc, const AnalyzerPtr &analyzer)
Updates a document by first deleting the document(s) containing term and then adding the new document...
virtual void setDiagnostics(const SegmentInfoPtr &info, const String &source)
virtual void optimize(int32_t maxNumSegments, bool doWait)
Just like optimize(int32_t), except you can specify whether the call should block until the optimize ...
boost::shared_ptr< Similarity > SimilarityPtr
Definition: LuceneTypes.h:435
static const int32_t DEFAULT_MAX_BUFFERED_DELETE_TERMS
Disabled by default (because IndexWriter flushes by RAM usage by default). Change using setMaxBuffere...
Definition: IndexWriter.h:226
DocumentsWriterPtr docWriter
Definition: IndexWriter.h:138
virtual void finishSync(const String &fileName, bool success)
virtual int32_t getFlushCount()
virtual void optimize(bool doWait)
Just like optimize(), except you can specify whether the call should block until the optimize complet...
int64_t pendingCommitChangeCount
Definition: IndexWriter.h:202
IndexCommitPtr indexCommit
Definition: IndexWriter.h:123
virtual void setTermIndexInterval(int32_t interval)
Set the interval between indexed terms. Large values cause less memory to be used by IndexReader,...
int64_t changeCount
Definition: IndexWriter.h:127
virtual void updatePendingMerges(int32_t maxNumSegmentsOptimize, bool optimize)
virtual void setMessageID(const InfoStreamPtr &infoStream)
virtual void mergeFinish(const OneMergePtr &merge)
Does finishing for a merge, which is fast but holds the synchronized lock on IndexWriter instance.
virtual void acquireWrite()
IndexWriter(const DirectoryPtr &d, const AnalyzerPtr &a, bool create, int32_t mfl)
virtual int32_t getNumBufferedDocuments()
HashSet< String > synced
Definition: IndexWriter.h:192
int32_t readCount
Used to only allow one addIndexes to proceed at once.
Definition: IndexWriter.h:164
virtual bool getUseCompoundFile()
Get the current setting of whether newly flushed segments will use the compound file format....
virtual void prepareCommit(MapStringString commitUserData)
Prepare for commit, specifying commitUserData Map (String -> String). This does the first phase of 2-...
boost::shared_ptr< IndexingChain > IndexingChainPtr
Definition: LuceneTypes.h:156
virtual bool optimizeMergesPending()
Returns true if any merges in pendingMerges or runningMerges are optimization merges.
virtual LogMergePolicyPtr getLogMergePolicy()
Casts current mergePolicy to LogMergePolicy, and throws an exception if the mergePolicy is not a LogM...
virtual void commitMergedDeletes(const OneMergePtr &merge, const SegmentReaderPtr &mergeReader)
Carefully merges deletes for the segments we just merged. This is tricky because, although merging wi...
virtual void message(const String &message)
virtual void _mergeInit(const OneMergePtr &merge)
virtual void finishCommit()
virtual void addIndexes(Collection< IndexReaderPtr > readers)
Merges the provided indexes into this index. After this completes, the index is optimized....
int32_t flushCount
Definition: IndexWriter.h:160
virtual int32_t getTermIndexInterval()
Return the interval between indexed terms.
virtual void warm(const IndexReaderPtr &reader)=0
virtual void prepareCommit()
Prepare for commit.
virtual void setInfoStream(const InfoStreamPtr &infoStream)
If non-null, information about merges, deletes and a message when maxFieldLength is reached will be p...
boost::shared_ptr< IndexCommit > IndexCommitPtr
Definition: LuceneTypes.h:152
virtual void setMaxFieldLength(int32_t maxFieldLength)
The maximum number of terms that will be indexed for a single field in a document....
virtual void setDiagnostics(const SegmentInfoPtr &info, const String &source, MapStringString details)
static const int32_t MaxFieldLengthUNLIMITED
Sets the maximum field length to INT_MAX.
Definition: IndexWriter.h:240
clucene.sourceforge.net