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 Summary
Fields Modifier and Type Field Description static String
DEFAULT_MERGE_SCHEDULER_CLASSNAME
org.apache.lucene.util.InfoStream
infoStream
String
lockType
int
maxBufferedDocs
PluginInfo
mergedSegmentWarmerInfo
PluginInfo
mergePolicyFactoryInfo
PluginInfo
mergeSchedulerInfo
PluginInfo
metricsInfo
double
ramBufferSizeMB
boolean
useCompoundFile
int
writeLockTimeout
-
Constructor Summary
Constructors Constructor Description SolrIndexConfig(SolrConfig solrConfig, String prefix, SolrIndexConfig def)
Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml
-
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
-
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 solrConfig, String prefix, SolrIndexConfig def)
Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml- Parameters:
solrConfig
- the overall SolrConfig objectprefix
- the XPath prefix for which section to parse (mandatory)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 interfaceMapSerializable
-
toIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig toIndexWriterConfig(SolrCore core) throws IOException
- Throws:
IOException
-
-