Package org.apache.solr.update
Class SolrIndexConfig
- java.lang.Object
- 
- org.apache.solr.update.SolrIndexConfig
 
- 
- All Implemented Interfaces:
- MapSerializable
 
 public class SolrIndexConfig extends Object implements MapSerializable This config object encapsulates IndexWriter config params, defined in the <indexConfig> section of solrconfig.xml
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_MERGE_SCHEDULER_CLASSNAMEorg.apache.lucene.util.InfoStreaminfoStreamStringlockTypeintmaxBufferedDocsintmaxCommitMergeWaitMillisWhen 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.PluginInfomergedSegmentWarmerInfoPluginInfomergePolicyFactoryInfoPluginInfomergeSchedulerInfoPluginInfometricsInfodoubleramBufferSizeMBintramPerThreadHardLimitMBbooleanuseCompoundFileintwriteLockTimeout
 - 
Constructor SummaryConstructors Constructor Description SolrIndexConfig(ConfigNode cfg, SolrIndexConfig def)Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xmlSolrIndexConfig(SolrConfig cfg, SolrIndexConfig def)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.index.IndexWriterConfigtoIndexWriterConfig(SolrCore core)Map<String,Object>toMap(Map<String,Object> map)
 
- 
- 
- 
Field Detail- 
DEFAULT_MERGE_SCHEDULER_CLASSNAMEpublic static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME 
 - 
useCompoundFilepublic final boolean useCompoundFile 
 - 
maxBufferedDocspublic final int maxBufferedDocs 
 - 
ramBufferSizeMBpublic final double ramBufferSizeMB 
 - 
ramPerThreadHardLimitMBpublic final int ramPerThreadHardLimitMB 
 - 
maxCommitMergeWaitMillispublic final int maxCommitMergeWaitMillis When 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.
 - 
writeLockTimeoutpublic final int writeLockTimeout 
 - 
lockTypepublic final String lockType 
 - 
mergePolicyFactoryInfopublic final PluginInfo mergePolicyFactoryInfo 
 - 
mergeSchedulerInfopublic final PluginInfo mergeSchedulerInfo 
 - 
metricsInfopublic final PluginInfo metricsInfo 
 - 
mergedSegmentWarmerInfopublic final PluginInfo mergedSegmentWarmerInfo 
 - 
infoStreampublic org.apache.lucene.util.InfoStream infoStream 
 
- 
 - 
Constructor Detail- 
SolrIndexConfigpublic SolrIndexConfig(SolrConfig cfg, SolrIndexConfig def) 
 - 
SolrIndexConfigpublic SolrIndexConfig(ConfigNode cfg, SolrIndexConfig def) 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 Detail- 
toMappublic Map<String,Object> toMap(Map<String,Object> map) - Specified by:
- toMapin interface- MapSerializable
 
 - 
toIndexWriterConfigpublic org.apache.lucene.index.IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException - Throws:
- IOException
 
 
- 
 
-