Class PKIndexSplitter
Split an index based on a Filter.
Inheritance
System.Object
PKIndexSplitter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.Misc.dll
Syntax
public class PKIndexSplitter
Constructors
| Improve this Doc View SourcePKIndexSplitter(Directory, Directory, Directory, Term, IndexWriterConfig, IndexWriterConfig)
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)
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 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
| Improve this Doc View SourceSplit()
Declaration
public virtual void Split()