Package org.apache.solr.update
Class SolrIndexConfig
java.lang.Object
org.apache.solr.update.SolrIndexConfig
- All Implemented Interfaces:
org.apache.solr.common.MapWriter,org.apache.solr.common.NavigableObject,org.noggit.JSONWriter.Writable
This config object encapsulates IndexWriter config params, defined in the <indexConfig>
section of solrconfig.xml
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
org.apache.solr.common.MapWriter.EntryWriter -
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
Modifier and TypeMethodDescriptionorg.apache.lucene.index.IndexWriterConfigtoIndexWriterConfig(SolrCore core) voidwriteMap(org.apache.solr.common.MapWriter.EntryWriter ew) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.common.MapWriter
jsonStr, writeMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
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
-
writeMap
- Specified by:
writeMapin interfaceorg.apache.solr.common.MapWriter- Throws:
IOException
-
toIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException - Throws:
IOException
-