Method Split
Split(LuceneVersion, IndexReader, Directory[], Boolean)
Split source index into multiple parts.
Declaration
public virtual void Split(LuceneVersion version, IndexReader in, Directory[] outputs, bool seq)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | lucene compatibility version |
IndexReader | in | source index, can have deletions, can have multiple segments (or multiple readers). |
Directory[] | outputs | list of directories where the output parts will be stored. |
System.Boolean | seq | if true, then the source index will be split into equal increasing ranges of document id-s. If false, source document id-s will be assigned in a deterministic round-robin fashion to one of the output splits. |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If there is a low-level I/O error |