Merges the provided indexes into this index.
After this completes, the index is optimized. The provided IndexReaders are not closed.NOTE: while this is running, any attempts to
add or delete documents (with another thread) will be
paused until this method completes.
See {@link #AddIndexesNoOptimize(Directory[])} for
details on transactional semantics, temporary free
space required in the Directory, and non-CFS segments
on an Exception.NOTE: if this method hits an OutOfMemoryError
you should immediately close the writer. See above for details.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual void AddIndexes( IndexReader[] readers ) |
Visual Basic |
---|
Public Overridable Sub AddIndexes ( _ readers As IndexReader() _ ) |
Visual C++ |
---|
public: virtual void AddIndexes( array<IndexReader^>^ readers ) |
Parameters
- readers
- Type: array<Lucene.Net.Index..::..IndexReader>[]()[][]
[Missing <param name="readers"/> documentation for "M:Lucene.Net.Index.IndexWriter.AddIndexes(Lucene.Net.Index.IndexReader[])"]