public class SolrIndexConfig extends Object implements MapSerializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MERGE_SCHEDULER_CLASSNAME |
InfoStream |
infoStream |
String |
lockType |
int |
maxBufferedDocs |
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. |
PluginInfo |
mergedSegmentWarmerInfo |
PluginInfo |
mergePolicyFactoryInfo |
PluginInfo |
mergeSchedulerInfo |
PluginInfo |
metricsInfo |
double |
ramBufferSizeMB |
int |
ramPerThreadHardLimitMB |
boolean |
useCompoundFile |
int |
writeLockTimeout |
Constructor and Description |
---|
SolrIndexConfig(SolrConfig solrConfig,
String prefix,
SolrIndexConfig def)
Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml
|
Modifier and Type | Method and Description |
---|---|
IndexWriterConfig |
toIndexWriterConfig(SolrCore core) |
Map<String,Object> |
toMap(Map<String,Object> map) |
public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME
public final boolean useCompoundFile
public final int maxBufferedDocs
public final double ramBufferSizeMB
public final int ramPerThreadHardLimitMB
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.
public final int writeLockTimeout
public final String lockType
public final PluginInfo mergePolicyFactoryInfo
public final PluginInfo mergeSchedulerInfo
public final PluginInfo metricsInfo
public final PluginInfo mergedSegmentWarmerInfo
public InfoStream infoStream
public SolrIndexConfig(SolrConfig solrConfig, String prefix, SolrIndexConfig def)
solrConfig
- the overall SolrConfig objectprefix
- the XPath prefix for which section to parse (mandatory)def
- a SolrIndexConfig instance to pick default values from (optional)public Map<String,Object> toMap(Map<String,Object> map)
toMap
in interface MapSerializable
public IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.