public class SolrIndexConfig extends Object implements MapSerializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MERGE_SCHEDULER_CLASSNAME |
InfoStream |
infoStream |
static String |
LOCK_TYPE_NATIVE |
static String |
LOCK_TYPE_NONE |
static String |
LOCK_TYPE_SIMPLE |
static String |
LOCK_TYPE_SINGLE |
String |
lockType |
static org.slf4j.Logger |
log |
Version |
luceneVersion |
int |
maxBufferedDocs |
int |
maxIndexingThreads |
int |
maxMergeDocs |
PluginInfo |
mergedSegmentWarmerInfo |
int |
mergeFactor |
PluginInfo |
mergePolicyInfo |
PluginInfo |
mergeSchedulerInfo |
double |
ramBufferSizeMB |
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 |
---|---|
boolean |
getUseCompoundFile() |
IndexWriterConfig |
toIndexWriterConfig(SolrCore core) |
Map<String,Object> |
toMap() |
public static final org.slf4j.Logger log
public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME
public final Version luceneVersion
public final int maxBufferedDocs
public final int maxMergeDocs
public final int maxIndexingThreads
public final int mergeFactor
public final double ramBufferSizeMB
public final int writeLockTimeout
public final String lockType
public final PluginInfo mergePolicyInfo
public final PluginInfo mergeSchedulerInfo
public final PluginInfo mergedSegmentWarmerInfo
public InfoStream infoStream
public static final String LOCK_TYPE_SIMPLE
public static final String LOCK_TYPE_NATIVE
public static final String LOCK_TYPE_SINGLE
public static final String LOCK_TYPE_NONE
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()
toMap
in interface MapSerializable
public IndexWriterConfig toIndexWriterConfig(SolrCore core)
public boolean getUseCompoundFile()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.