Class LiveIndexWriterConfig

  • Direct Known Subclasses:
    IndexWriterConfig

    public class LiveIndexWriterConfig
    extends java.lang.Object
    Holds all the configuration used by IndexWriter with few setters for settings that can be changed on an IndexWriter instance "live".
    Since:
    4.0
    • Field Detail

      • analyzer

        private final Analyzer analyzer
      • maxBufferedDocs

        private volatile int maxBufferedDocs
      • ramBufferSizeMB

        private volatile double ramBufferSizeMB
      • createdVersionMajor

        protected int createdVersionMajor
        Compatibility version to use for this index.
      • codec

        protected volatile Codec codec
        Codec used to write new segments.
      • indexerThreadPool

        protected volatile DocumentsWriterPerThreadPool indexerThreadPool
        DocumentsWriterPerThreadPool to control how threads are allocated to DocumentsWriterPerThread.
      • readerPooling

        protected volatile boolean readerPooling
        True if readers should be pooled.
      • perThreadHardLimitMB

        protected volatile int perThreadHardLimitMB
        Sets the hard upper bound on RAM usage for a single segment, after which the segment is forced to flush.
      • useCompoundFile

        protected volatile boolean useCompoundFile
        True if segment flushes should use compound file format
      • commitOnClose

        protected boolean commitOnClose
        True if calls to IndexWriter.close() should first do a commit.
      • indexSort

        protected Sort indexSort
        The sort order to use to write merged segments.
      • indexSortFields

        protected java.util.Set<java.lang.String> indexSortFields
        The field names involved in the index sort
      • checkPendingFlushOnUpdate

        protected volatile boolean checkPendingFlushOnUpdate
        if an indexing thread should check for pending flushes on update in order to help out on a full flush
      • softDeletesField

        protected java.lang.String softDeletesField
        soft deletes field
      • readerAttributes

        protected java.util.Map<java.lang.String,​java.lang.String> readerAttributes
        the attributes for the NRT readers
    • Constructor Detail

      • LiveIndexWriterConfig

        LiveIndexWriterConfig​(Analyzer analyzer)