Class PKIndexSplitter
Split an index based on a Lucene.Net.Search.Filter.
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.Misc.dll
Syntax
public class PKIndexSplitter
Constructors
PKIndexSplitter(Directory, Directory, Directory, Term, IndexWriterConfig, IndexWriterConfig)
Split an index based on a Lucene.Net.Search.Filter.
Declaration
public PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm, IndexWriterConfig config1, IndexWriterConfig config2)
Parameters
Type | Name | Description |
---|---|---|
Directory | input | |
Directory | dir1 | |
Directory | dir2 | |
Term | midTerm | |
IndexWriterConfig | config1 | |
IndexWriterConfig | config2 |
PKIndexSplitter(Directory, Directory, Directory, Filter, IndexWriterConfig, IndexWriterConfig)
Split an index based on a Lucene.Net.Search.Filter.
Declaration
public PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex, IndexWriterConfig config1, IndexWriterConfig config2)
Parameters
Type | Name | Description |
---|---|---|
Directory | input | |
Directory | dir1 | |
Directory | dir2 | |
Filter | docsInFirstIndex | |
IndexWriterConfig | config1 | |
IndexWriterConfig | config2 |
PKIndexSplitter(LuceneVersion, Directory, Directory, Directory, Term)
Split an index based on a given primary key term and a 'middle' term. If the middle term is present, it's sent to dir2.
Declaration
public PKIndexSplitter(LuceneVersion version, Directory input, Directory dir1, Directory dir2, Term midTerm)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | |
Directory | input | |
Directory | dir1 | |
Directory | dir2 | |
Term | midTerm |
PKIndexSplitter(LuceneVersion, Directory, Directory, Directory, Filter)
Split an index based on a Lucene.Net.Search.Filter. All documents that match the filter are sent to dir1, remaining ones to dir2.
Declaration
public PKIndexSplitter(LuceneVersion version, Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | version | |
Directory | input | |
Directory | dir1 | |
Directory | dir2 | |
Filter | docsInFirstIndex |
Methods
Split()
Split an index based on a Lucene.Net.Search.Filter.
Declaration
public virtual void Split()