|
||||||||||
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 String |
DEFAULT_CONF_FILE
|
static Collection<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(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 String DEFAULT_CONF_FILE
public static Config config
public static final Collection<Throwable> severeErrors
Constructor Detail |
---|
public SolrConfig()
Method Detail |
---|
public static void initConfig(String file) throws ParserConfigurationException, IOException, 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
ParserConfigurationException
IOException
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 |