Class SolrIndexConfig

  • All Implemented Interfaces:

    public class SolrIndexConfig
    extends Object
    implements org.apache.solr.common.MapSerializable
    This config object encapsulates IndexWriter config params, defined in the <indexConfig> section of solrconfig.xml
    • Field Detail


        public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME
      • useCompoundFile

        public final boolean useCompoundFile
      • maxBufferedDocs

        public final int maxBufferedDocs
      • ramBufferSizeMB

        public final double ramBufferSizeMB
      • ramPerThreadHardLimitMB

        public final int ramPerThreadHardLimitMB
      • maxCommitMergeWaitMillis

        public final int maxCommitMergeWaitMillis
        When using a custom merge policy that allows triggering synchronous merges on commit (see MergePolicy.findFullFlushMerges(org.apache.lucene.index.MergeTrigger, org.apache.lucene.index.SegmentInfos, org.apache.lucene.index.MergePolicy.MergeContext)), a timeout (in milliseconds) can be set for those merges to finish. Use <maxCommitMergeWaitTime>1000</maxCommitMergeWaitTime> in the <indexConfig> section. See IndexWriterConfig.setMaxFullFlushMergeWaitMillis(long).

        Note that as of Solr 8.6, no MergePolicy shipped with Lucene/Solr make use of MergePolicy.findFullFlushMerges, which means this setting has no effect unless a custom MergePolicy is used.

      • writeLockTimeout

        public final int writeLockTimeout
      • lockType

        public final String lockType
      • mergePolicyFactoryInfo

        public final PluginInfo mergePolicyFactoryInfo
      • mergeSchedulerInfo

        public final PluginInfo mergeSchedulerInfo
      • metricsInfo

        public final PluginInfo metricsInfo
      • mergedSegmentWarmerInfo

        public final PluginInfo mergedSegmentWarmerInfo
      • infoStream

        public org.apache.lucene.util.InfoStream infoStream
    • Constructor Detail

      • SolrIndexConfig

        public SolrIndexConfig​(org.apache.solr.common.ConfigNode cfg,
                               SolrIndexConfig def)
        Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml
        def - a SolrIndexConfig instance to pick default values from (optional)