|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.core.SolrConfig
public class SolrConfig
Provides a static reference to a Config object modeling the main configuration data for a a Solr instance -- typically found in "solrconfig.xml".
Field Summary | |
---|---|
static Config |
config
Singleton containing all configuration. |
static java.lang.String |
DEFAULT_CONF_FILE
|
static java.util.Collection<java.lang.Throwable> |
severeErrors
Singleton keeping track of configuration errors |
Constructor Summary | |
---|---|
SolrConfig()
|
Method Summary | |
---|---|
static SolrQueryRequest |
getPingQueryRequest(SolrCore core)
Returns a Request object based on the admin/pingQuery section of the Solr config file. |
static void |
initConfig(java.lang.String file)
(Re)loads the static configuration information from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_CONF_FILE
public static Config config
public static final java.util.Collection<java.lang.Throwable> severeErrors
Constructor Detail |
---|
public SolrConfig()
Method Detail |
---|
public static void initConfig(java.lang.String file) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
This method is called implicitly on ClassLoad, but it may be called explicitly to change the Configuration used for the purpose of testing - in which case it should be called prior to initializing a SolrCore.
This method should only be called for testing purposes. Because it modifies a singleton, it is not suitable for running multi-threaded tests.
file
- file name to load
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
Config.openResource(java.lang.String)
public static SolrQueryRequest getPingQueryRequest(SolrCore core)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |