org.apache.solr.update
Class SolrIndexConfig

java.lang.Object
  extended by org.apache.solr.update.SolrIndexConfig

public class SolrIndexConfig
extends Object

This config object encapsulates IndexWriter config params, defined in the <indexConfig> section of solrconfig.xml


Field Summary
static String DEFAULT_MERGE_SCHEDULER_CLASSNAME
           
 String infoStreamFile
           
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
           
 int mergeFactor
           
 PluginInfo mergePolicyInfo
           
 PluginInfo mergeSchedulerInfo
           
 double ramBufferSizeMB
           
 int termIndexInterval
           
 boolean useCompoundFile
           
 int writeLockTimeout
           
 
Constructor Summary
SolrIndexConfig(SolrConfig solrConfig, String prefix, SolrIndexConfig def)
          Constructs a SolrIndexConfig which parses the Lucene related config params in solrconfig.xml
 
Method Summary
 IndexWriterConfig toIndexWriterConfig(IndexSchema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.slf4j.Logger log

DEFAULT_MERGE_SCHEDULER_CLASSNAME

public static final String DEFAULT_MERGE_SCHEDULER_CLASSNAME

luceneVersion

public final Version luceneVersion

useCompoundFile

public final boolean useCompoundFile

maxBufferedDocs

public final int maxBufferedDocs

maxMergeDocs

public final int maxMergeDocs

maxIndexingThreads

public final int maxIndexingThreads

mergeFactor

public final int mergeFactor

ramBufferSizeMB

public final double ramBufferSizeMB

writeLockTimeout

public final int writeLockTimeout

lockType

public final String lockType

mergePolicyInfo

public final PluginInfo mergePolicyInfo

mergeSchedulerInfo

public final PluginInfo mergeSchedulerInfo

termIndexInterval

public final int termIndexInterval

infoStreamFile

public String infoStreamFile

LOCK_TYPE_SIMPLE

public static final String LOCK_TYPE_SIMPLE
See Also:
Constant Field Values

LOCK_TYPE_NATIVE

public static final String LOCK_TYPE_NATIVE
See Also:
Constant Field Values

LOCK_TYPE_SINGLE

public static final String LOCK_TYPE_SINGLE
See Also:
Constant Field Values

LOCK_TYPE_NONE

public static final String LOCK_TYPE_NONE
See Also:
Constant Field Values
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 object
prefix - the XPath prefix for which section to parse (mandatory)
def - a SolrIndexConfig instance to pick default values from (optional)
Method Detail

toIndexWriterConfig

public IndexWriterConfig toIndexWriterConfig(IndexSchema schema)


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.