Class IndexWriterConfigExtensions
Extension methods that can be used to provide similar
Index
Inheritance
Inherited Members
Namespace: Lucene.Net.Index.Extensions
Assembly: Lucene.Net.dll
Syntax
public static class IndexWriterConfigExtensions
Methods
| Improve this Doc View SourceSetCheckIntegrityAtMerge(IndexWriterConfig, Boolean)
Builder method for Check
Declaration
public static IndexWriterConfig SetCheckIntegrityAtMerge(this IndexWriterConfig config, bool checkIntegrityAtMerge)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
checkIntegrityAtMerge |
Returns
Type | Description |
---|---|
Index |
this Index |
SetCheckIntegrityAtMerge(LiveIndexWriterConfig, Boolean)
Builder method for Check
Declaration
public static LiveIndexWriterConfig SetCheckIntegrityAtMerge(this LiveIndexWriterConfig config, bool checkIntegrityAtMerge)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
checkIntegrityAtMerge |
Returns
Type | Description |
---|---|
Live |
this Live |
SetCodec(IndexWriterConfig, Codec)
Builder method for Codec.
Declaration
public static IndexWriterConfig SetCodec(this IndexWriterConfig config, Codec codec)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Codec | codec |
Returns
Type | Description |
---|---|
Index |
this Index |
SetDefaultWriteLockTimeout(IndexWriterConfig, Int64)
Builder method for Default
Declaration
public static void SetDefaultWriteLockTimeout(this IndexWriterConfig config, long writeLockTimeout)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
writeLockTimeout |
SetIndexCommit(IndexWriterConfig, IndexCommit)
Builder method for Index
Declaration
public static IndexWriterConfig SetIndexCommit(this IndexWriterConfig config, IndexCommit commit)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Index |
commit |
Returns
Type | Description |
---|---|
Index |
this Index |
SetIndexDeletionPolicy(IndexWriterConfig, IndexDeletionPolicy)
Builder method for Index
Declaration
public static IndexWriterConfig SetIndexDeletionPolicy(this IndexWriterConfig config, IndexDeletionPolicy deletionPolicy)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Index |
deletionPolicy |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMaxBufferedDeleteTerms(IndexWriterConfig, Int32)
Builder method for Max
Declaration
public static IndexWriterConfig SetMaxBufferedDeleteTerms(this IndexWriterConfig config, int maxBufferedDeleteTerms)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
maxBufferedDeleteTerms |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMaxBufferedDeleteTerms(LiveIndexWriterConfig, Int32)
Builder method for Max
Declaration
public static LiveIndexWriterConfig SetMaxBufferedDeleteTerms(this LiveIndexWriterConfig config, int maxBufferedDeleteTerms)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
maxBufferedDeleteTerms |
Returns
Type | Description |
---|---|
Live |
this Live |
SetMaxBufferedDocs(IndexWriterConfig, Int32)
Builder method for Max
Declaration
public static IndexWriterConfig SetMaxBufferedDocs(this IndexWriterConfig config, int maxBufferedDocs)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
maxBufferedDocs |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMaxBufferedDocs(LiveIndexWriterConfig, Int32)
Builder method for Max
Declaration
public static LiveIndexWriterConfig SetMaxBufferedDocs(this LiveIndexWriterConfig config, int maxBufferedDocs)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
maxBufferedDocs |
Returns
Type | Description |
---|---|
Live |
this Live |
SetMaxThreadStates(IndexWriterConfig, Int32)
Builder method for Max
Declaration
public static IndexWriterConfig SetMaxThreadStates(this IndexWriterConfig config, int maxThreadStates)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
maxThreadStates |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMergedSegmentWarmer(IndexWriterConfig, IndexWriter.IndexReaderWarmer)
Builder method for Merged
Declaration
public static IndexWriterConfig SetMergedSegmentWarmer(this IndexWriterConfig config, IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Index |
mergeSegmentWarmer |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMergedSegmentWarmer(LiveIndexWriterConfig, IndexWriter.IndexReaderWarmer)
Builder method for Merged
Declaration
public static LiveIndexWriterConfig SetMergedSegmentWarmer(this LiveIndexWriterConfig config, IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
Index |
mergeSegmentWarmer |
Returns
Type | Description |
---|---|
Live |
this Live |
SetMergePolicy(IndexWriterConfig, MergePolicy)
Builder method for Merge
Declaration
public static IndexWriterConfig SetMergePolicy(this IndexWriterConfig config, MergePolicy mergePolicy)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Merge |
mergePolicy |
Returns
Type | Description |
---|---|
Index |
this Index |
SetMergeScheduler(IndexWriterConfig, IMergeScheduler)
Builder method for Merge
Declaration
public static IndexWriterConfig SetMergeScheduler(this IndexWriterConfig config, IMergeScheduler mergeScheduler)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
IMerge |
mergeScheduler |
Returns
Type | Description |
---|---|
Index |
this Index |
SetOpenMode(IndexWriterConfig, OpenMode)
Builder method for Open
Declaration
public static IndexWriterConfig SetOpenMode(this IndexWriterConfig config, OpenMode openMode)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Open |
openMode |
Returns
Type | Description |
---|---|
Index |
this Index |
SetRAMBufferSizeMB(IndexWriterConfig, Double)
Builder method for RAMBuffer
Declaration
public static IndexWriterConfig SetRAMBufferSizeMB(this IndexWriterConfig config, double ramBufferSizeMB)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
ramBufferSizeMB |
Returns
Type | Description |
---|---|
Index |
this Index |
SetRAMBufferSizeMB(LiveIndexWriterConfig, Double)
Builder method for RAMBuffer
Declaration
public static LiveIndexWriterConfig SetRAMBufferSizeMB(this LiveIndexWriterConfig config, double ramBufferSizeMB)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
ramBufferSizeMB |
Returns
Type | Description |
---|---|
Live |
this Live |
SetRAMPerThreadHardLimitMB(IndexWriterConfig, Int32)
Builder method for RAMPer
Declaration
public static IndexWriterConfig SetRAMPerThreadHardLimitMB(this IndexWriterConfig config, int perThreadHardLimitMB)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
perThreadHardLimitMB |
Returns
Type | Description |
---|---|
Index |
this Index |
SetReaderPooling(IndexWriterConfig, Boolean)
Builder method for Use
Declaration
public static IndexWriterConfig SetReaderPooling(this IndexWriterConfig config, bool readerPooling)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
readerPooling |
Returns
Type | Description |
---|---|
Index |
this Index |
SetReaderTermsIndexDivisor(IndexWriterConfig, Int32)
Builder method for Reader
Declaration
public static IndexWriterConfig SetReaderTermsIndexDivisor(this IndexWriterConfig config, int divisor)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
divisor |
Returns
Type | Description |
---|---|
Index |
this Index |
SetReaderTermsIndexDivisor(LiveIndexWriterConfig, Int32)
Builder method for Reader
Declaration
public static LiveIndexWriterConfig SetReaderTermsIndexDivisor(this LiveIndexWriterConfig config, int divisor)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
divisor |
Returns
Type | Description |
---|---|
Live |
this Live |
SetSimilarity(IndexWriterConfig, Similarity)
Builder method for Similarity.
Declaration
public static IndexWriterConfig SetSimilarity(this IndexWriterConfig config, Similarity similarity)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
Similarity | similarity |
Returns
Type | Description |
---|---|
Index |
this Index |
SetTermIndexInterval(IndexWriterConfig, Int32)
Builder method for Term
Declaration
public static IndexWriterConfig SetTermIndexInterval(this IndexWriterConfig config, int interval)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
interval |
Returns
Type | Description |
---|---|
Index |
this Index |
SetTermIndexInterval(LiveIndexWriterConfig, Int32)
Builder method for Term
Declaration
public static LiveIndexWriterConfig SetTermIndexInterval(this LiveIndexWriterConfig config, int interval)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
interval |
Returns
Type | Description |
---|---|
Live |
this Live |
SetUseCompoundFile(IndexWriterConfig, Boolean)
Builder method for Use
Declaration
public static IndexWriterConfig SetUseCompoundFile(this IndexWriterConfig config, bool useCompoundFile)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
useCompoundFile |
Returns
Type | Description |
---|---|
Index |
this Index |
SetUseCompoundFile(LiveIndexWriterConfig, Boolean)
Builder method for Use
Declaration
public static LiveIndexWriterConfig SetUseCompoundFile(this LiveIndexWriterConfig config, bool useCompoundFile)
Parameters
Type | Name | Description |
---|---|---|
Live |
config | this Live |
System. |
useCompoundFile |
Returns
Type | Description |
---|---|
Live |
this Live |
SetWriteLockTimeout(IndexWriterConfig, Int64)
Builder method for Write
Declaration
public static IndexWriterConfig SetWriteLockTimeout(this IndexWriterConfig config, long writeLockTimeout)
Parameters
Type | Name | Description |
---|---|---|
Index |
config | this Index |
System. |
writeLockTimeout |
Returns
Type | Description |
---|---|
Index |
this Index |