Package org.apache.solr.update
Class SolrIndexConfig
- java.lang.Object
-
- org.apache.solr.update.SolrIndexConfig
-
- All Implemented Interfaces:
org.apache.solr.common.MapSerializable
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 Summary
Fields Modifier and Type Field Description static String
DEFAULT_MERGE_SCHEDULER_CLASSNAME
org.apache.lucene.util.InfoStream
infoStream
String
lockType
int
maxBufferedDocs
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.PluginInfo
mergedSegmentWarmerInfo
PluginInfo
mergePolicyFactoryInfo
PluginInfo
mergeSchedulerInfo
PluginInfo
metricsInfo
double
ramBufferSizeMB
int
ramPerThreadHardLimitMB
boolean
useCompoundFile
int
writeLockTimeout
-
Constructor Summary
Constructors Constructor Description SolrIndexConfig(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.index.IndexWriterConfig
toIndexWriterConfig(SolrCore core)
Map<String,Object>
toMap(Map<String,Object> map)
-
-
-
Field Detail
-
DEFAULT_MERGE_SCHEDULER_CLASSNAME
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 (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
MergePolicy
shipped with Lucene/Solr make use ofMergePolicy.findFullFlushMerges
, which means this setting has no effect unless a customMergePolicy
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(SolrConfig cfg, SolrIndexConfig def)
-
SolrIndexConfig
public SolrIndexConfig(org.apache.solr.common.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
-
toMap
public Map<String,Object> toMap(Map<String,Object> map)
- Specified by:
toMap
in interfaceorg.apache.solr.common.MapSerializable
-
toIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException
- Throws:
IOException
-
-