Package org.apache.solr.update
Class SolrIndexConfig
java.lang.Object
org.apache.solr.update.SolrIndexConfig
- All Implemented Interfaces:
org.apache.solr.common.MapSerializable
This config object encapsulates IndexWriter config params, defined in the <indexConfig>
section of solrconfig.xml
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringorg.apache.lucene.util.InfoStreamfinal Stringfinal intfinal intWhen using a custom merge policy that allows triggering synchronous merges on commit (seeMergePolicy.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.final PluginInfofinal PluginInfofinal PluginInfofinal PluginInfofinal doublefinal intfinal booleanfinal int -
Constructor Summary
ConstructorsConstructorDescriptionSolrIndexConfig(org.apache.solr.common.ConfigNode cfg, SolrIndexConfig def) Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xmlSolrIndexConfig(SolrConfig cfg, SolrIndexConfig def) -
Method Summary
-
Field Details
-
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 maxCommitMergeWaitMillisWhen using a custom merge policy that allows triggering synchronous merges on commit (seeMergePolicy.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. SeeIndexWriterConfig.setMaxFullFlushMergeWaitMillis(long).Note that as of Solr 8.6, no
MergePolicyshipped with Lucene/Solr make use ofMergePolicy.findFullFlushMerges, which means this setting has no effect unless a customMergePolicyis used. -
writeLockTimeout
public final int writeLockTimeout -
lockType
-
mergePolicyFactoryInfo
-
mergeSchedulerInfo
-
metricsInfo
-
mergedSegmentWarmerInfo
-
infoStream
public org.apache.lucene.util.InfoStream infoStream
-
-
Constructor Details
-
SolrIndexConfig
-
SolrIndexConfig
Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml- Parameters:
def- a SolrIndexConfig instance to pick default values from (optional)
-
-
Method Details
-
toMap
- Specified by:
toMapin interfaceorg.apache.solr.common.MapSerializable
-
toIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException - Throws:
IOException
-