public class ConfigSolrXml extends Config implements ConfigSolr
ConfigSolr.CfgProp
CORE_PROP_FILE, SOLR_XML_FILE
Constructor and Description |
---|
ConfigSolrXml(SolrResourceLoader loader,
Config cfg,
CoreContainer container) |
ConfigSolrXml(SolrResourceLoader loader,
String name,
InputStream is,
String prefix,
boolean subProps,
CoreContainer container) |
complainAboutUnknownAttributes, evaluate, get, get, getBool, getBool, getDocument, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLuceneVersion, getLuceneVersion, getName, getNode, getNodeList, getResourceLoader, getResourceName, getUnknownAttributes, getVal, getXPath, parseLuceneVersionString, substituteProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
substituteProperties
public ConfigSolrXml(SolrResourceLoader loader, String name, InputStream is, String prefix, boolean subProps, CoreContainer container) throws ParserConfigurationException, IOException, SAXException
public ConfigSolrXml(SolrResourceLoader loader, Config cfg, CoreContainer container) throws TransformerException, IOException
TransformerException
IOException
public String getBadConfigCoreMessage(String name)
getBadConfigCoreMessage
in interface ConfigSolr
public static Document copyDoc(Document doc) throws TransformerException
TransformerException
public int getInt(ConfigSolr.CfgProp prop, int def)
getInt
in interface ConfigSolr
public boolean getBool(ConfigSolr.CfgProp prop, boolean defValue)
getBool
in interface ConfigSolr
public String get(ConfigSolr.CfgProp prop, String def)
get
in interface ConfigSolr
public String getOrigProp(ConfigSolr.CfgProp prop, String def)
getOrigProp
in interface ConfigSolr
public ShardHandlerFactory initShardHandler()
initShardHandler
in interface ConfigSolr
public Properties getSolrProperties(String path)
getSolrProperties
in interface ConfigSolr
public Map<String,String> readCoreAttributes(String coreName)
readCoreAttributes
in interface ConfigSolr
public IndexSchema getSchemaFromZk(ZkController zkController, String zkConfigName, String schemaName, SolrConfig config) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public SolrConfig getSolrConfigFromZk(ZkController zkController, String zkConfigName, String solrConfigFileName, SolrResourceLoader resourceLoader)
getSolrConfigFromZk
in interface ConfigSolr
public void initPersist()
initPersist
in interface ConfigSolr
public static void initPersistStatic()
public void addPersistCore(String coreName, Properties attribs, Map<String,String> props)
addPersistCore
in interface ConfigSolr
public void addPersistAllCores(Properties containerProperties, Map<String,String> rootSolrAttribs, Map<String,String> coresAttribs, File file)
addPersistAllCores
in interface ConfigSolr
public String getCoreNameFromOrig(String origCoreName, SolrResourceLoader loader, String coreName)
getCoreNameFromOrig
in interface ConfigSolr
public List<String> getAllCoreNames()
getAllCoreNames
in interface ConfigSolr
public String getProperty(String coreName, String property, String defaultVal)
getProperty
in interface ConfigSolr
public Properties readCoreProperties(String coreName)
readCoreProperties
in interface ConfigSolr
public boolean is50OrLater()
is50OrLater
in interface ConfigSolr
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.