Show / Hide Table of Contents

    Class IndexWriterConfigExtensions

    Extension methods that can be used to provide similar IndexWriterConfig syntax as Java Lucene. (config.SetCheckIntegrityAtMerge(100).SetMaxBufferedDocs(1000);)

    Inheritance
    System.Object
    IndexWriterConfigExtensions
    Namespace: Lucene.Net.Index.Extensions
    Assembly: Lucene.Net.dll
    Syntax
    public static class IndexWriterConfigExtensions : object

    Methods

    | Improve this Doc View Source

    SetCheckIntegrityAtMerge(IndexWriterConfig, Boolean)

    Builder method for CheckIntegrityAtMerge.

    Declaration
    public static IndexWriterConfig SetCheckIntegrityAtMerge(this IndexWriterConfig config, bool checkIntegrityAtMerge)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Boolean checkIntegrityAtMerge
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetCheckIntegrityAtMerge(LiveIndexWriterConfig, Boolean)

    Builder method for CheckIntegrityAtMerge.

    Declaration
    public static LiveIndexWriterConfig SetCheckIntegrityAtMerge(this LiveIndexWriterConfig config, bool checkIntegrityAtMerge)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Boolean checkIntegrityAtMerge
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetCodec(IndexWriterConfig, Codec)

    Builder method for Codec.

    Declaration
    public static IndexWriterConfig SetCodec(this IndexWriterConfig config, Codec codec)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    Codec codec
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetDefaultWriteLockTimeout(IndexWriterConfig, Int64)

    Builder method for DefaultWriteLockTimeout.

    Declaration
    public static void SetDefaultWriteLockTimeout(this IndexWriterConfig config, long writeLockTimeout)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int64 writeLockTimeout
    | Improve this Doc View Source

    SetIndexCommit(IndexWriterConfig, IndexCommit)

    Builder method for IndexCommit.

    Declaration
    public static IndexWriterConfig SetIndexCommit(this IndexWriterConfig config, IndexCommit commit)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    IndexCommit commit
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetIndexDeletionPolicy(IndexWriterConfig, IndexDeletionPolicy)

    Builder method for IndexDeletionPolicy.

    Declaration
    public static IndexWriterConfig SetIndexDeletionPolicy(this IndexWriterConfig config, IndexDeletionPolicy deletionPolicy)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    IndexDeletionPolicy deletionPolicy
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMaxBufferedDeleteTerms(IndexWriterConfig, Int32)

    Builder method for MaxBufferedDeleteTerms.

    Declaration
    public static IndexWriterConfig SetMaxBufferedDeleteTerms(this IndexWriterConfig config, int maxBufferedDeleteTerms)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 maxBufferedDeleteTerms
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMaxBufferedDeleteTerms(LiveIndexWriterConfig, Int32)

    Builder method for MaxBufferedDeleteTerms.

    Declaration
    public static LiveIndexWriterConfig SetMaxBufferedDeleteTerms(this LiveIndexWriterConfig config, int maxBufferedDeleteTerms)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Int32 maxBufferedDeleteTerms
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetMaxBufferedDocs(IndexWriterConfig, Int32)

    Builder method for MaxBufferedDocs.

    Declaration
    public static IndexWriterConfig SetMaxBufferedDocs(this IndexWriterConfig config, int maxBufferedDocs)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 maxBufferedDocs
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMaxBufferedDocs(LiveIndexWriterConfig, Int32)

    Builder method for MaxBufferedDocs.

    Declaration
    public static LiveIndexWriterConfig SetMaxBufferedDocs(this LiveIndexWriterConfig config, int maxBufferedDocs)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Int32 maxBufferedDocs
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetMaxThreadStates(IndexWriterConfig, Int32)

    Builder method for MaxThreadStates.

    Declaration
    public static IndexWriterConfig SetMaxThreadStates(this IndexWriterConfig config, int maxThreadStates)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 maxThreadStates
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMergedSegmentWarmer(IndexWriterConfig, IndexWriter.IndexReaderWarmer)

    Builder method for MergedSegmentWarmer.

    Declaration
    public static IndexWriterConfig SetMergedSegmentWarmer(this IndexWriterConfig config, IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    IndexWriter.IndexReaderWarmer mergeSegmentWarmer
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMergedSegmentWarmer(LiveIndexWriterConfig, IndexWriter.IndexReaderWarmer)

    Builder method for MergedSegmentWarmer.

    Declaration
    public static LiveIndexWriterConfig SetMergedSegmentWarmer(this LiveIndexWriterConfig config, IndexWriter.IndexReaderWarmer mergeSegmentWarmer)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    IndexWriter.IndexReaderWarmer mergeSegmentWarmer
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetMergePolicy(IndexWriterConfig, MergePolicy)

    Builder method for MergePolicy.

    Declaration
    public static IndexWriterConfig SetMergePolicy(this IndexWriterConfig config, MergePolicy mergePolicy)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    MergePolicy mergePolicy
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetMergeScheduler(IndexWriterConfig, IMergeScheduler)

    Builder method for MergeScheduler.

    Declaration
    public static IndexWriterConfig SetMergeScheduler(this IndexWriterConfig config, IMergeScheduler mergeScheduler)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    IMergeScheduler mergeScheduler
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetOpenMode(IndexWriterConfig, OpenMode)

    Builder method for OpenMode.

    Declaration
    public static IndexWriterConfig SetOpenMode(this IndexWriterConfig config, OpenMode openMode)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    OpenMode openMode
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetRAMBufferSizeMB(IndexWriterConfig, Double)

    Builder method for RAMBufferSizeMB.

    Declaration
    public static IndexWriterConfig SetRAMBufferSizeMB(this IndexWriterConfig config, double ramBufferSizeMB)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Double ramBufferSizeMB
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetRAMBufferSizeMB(LiveIndexWriterConfig, Double)

    Builder method for RAMBufferSizeMB.

    Declaration
    public static LiveIndexWriterConfig SetRAMBufferSizeMB(this LiveIndexWriterConfig config, double ramBufferSizeMB)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Double ramBufferSizeMB
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetRAMPerThreadHardLimitMB(IndexWriterConfig, Int32)

    Builder method for RAMPerThreadHardLimitMB.

    Declaration
    public static IndexWriterConfig SetRAMPerThreadHardLimitMB(this IndexWriterConfig config, int perThreadHardLimitMB)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 perThreadHardLimitMB
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetReaderPooling(IndexWriterConfig, Boolean)

    Builder method for UseReaderPooling.

    Declaration
    public static IndexWriterConfig SetReaderPooling(this IndexWriterConfig config, bool readerPooling)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Boolean readerPooling
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetReaderTermsIndexDivisor(IndexWriterConfig, Int32)

    Builder method for ReaderTermsIndexDivisor.

    Declaration
    public static IndexWriterConfig SetReaderTermsIndexDivisor(this IndexWriterConfig config, int divisor)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 divisor
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetReaderTermsIndexDivisor(LiveIndexWriterConfig, Int32)

    Builder method for ReaderTermsIndexDivisor.

    Declaration
    public static LiveIndexWriterConfig SetReaderTermsIndexDivisor(this LiveIndexWriterConfig config, int divisor)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Int32 divisor
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetSimilarity(IndexWriterConfig, Similarity)

    Builder method for Similarity.

    Declaration
    public static IndexWriterConfig SetSimilarity(this IndexWriterConfig config, Similarity similarity)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    Similarity similarity
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetTermIndexInterval(IndexWriterConfig, Int32)

    Builder method for TermIndexInterval.

    Declaration
    public static IndexWriterConfig SetTermIndexInterval(this IndexWriterConfig config, int interval)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int32 interval
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetTermIndexInterval(LiveIndexWriterConfig, Int32)

    Builder method for TermIndexInterval.

    Declaration
    public static LiveIndexWriterConfig SetTermIndexInterval(this LiveIndexWriterConfig config, int interval)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Int32 interval
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetUseCompoundFile(IndexWriterConfig, Boolean)

    Builder method for UseCompoundFile.

    Declaration
    public static IndexWriterConfig SetUseCompoundFile(this IndexWriterConfig config, bool useCompoundFile)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Boolean useCompoundFile
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    | Improve this Doc View Source

    SetUseCompoundFile(LiveIndexWriterConfig, Boolean)

    Builder method for UseCompoundFile.

    Declaration
    public static LiveIndexWriterConfig SetUseCompoundFile(this LiveIndexWriterConfig config, bool useCompoundFile)
    Parameters
    Type Name Description
    LiveIndexWriterConfig config

    this LiveIndexWriterConfig instance

    System.Boolean useCompoundFile
    Returns
    Type Description
    LiveIndexWriterConfig

    this LiveIndexWriterConfig instance

    | Improve this Doc View Source

    SetWriteLockTimeout(IndexWriterConfig, Int64)

    Builder method for WriteLockTimeout.

    Declaration
    public static IndexWriterConfig SetWriteLockTimeout(this IndexWriterConfig config, long writeLockTimeout)
    Parameters
    Type Name Description
    IndexWriterConfig config

    this IndexWriterConfig instance

    System.Int64 writeLockTimeout
    Returns
    Type Description
    IndexWriterConfig

    this IndexWriterConfig instance

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)