public class SolrConfig extends Config implements MapSerializable
Modifier and Type | Class and Description |
---|---|
static class |
SolrConfig.HttpCachingConfig |
static class |
SolrConfig.PluginOpts |
static class |
SolrConfig.SolrPluginInfo |
static class |
SolrConfig.UpdateHandlerInfo |
Modifier and Type | Field and Description |
---|---|
int |
booleanQueryMaxClauseCount |
static Map<String,SolrConfig.SolrPluginInfo> |
classVsSolrPluginInfo |
protected String |
dataDir |
static String |
DEFAULT_CONF_FILE |
CacheConfig |
documentCacheConfig |
boolean |
enableLazyFieldLoading |
CacheConfig |
fieldValueCacheConfig |
CacheConfig |
filterCacheConfig |
int |
hashDocSetMaxSize |
float |
hashSetInverseLoadFactor |
SolrIndexConfig |
indexConfig |
Version |
luceneMatchVersion |
int |
maxWarmingSearchers |
static List<SolrConfig.SolrPluginInfo> |
plugins |
CacheConfig |
queryResultCacheConfig |
int |
queryResultMaxDocsCached |
int |
queryResultWindowSize |
int |
slowQueryThresholdMillis |
protected SolrConfig.UpdateHandlerInfo |
updateHandlerInfo |
boolean |
useColdSearcher |
boolean |
useFilterForSortedQuery |
boolean |
useRangeVersionsForPeerSync |
Map<String,CacheConfig> |
userCacheConfigs |
Constructor and Description |
---|
SolrConfig()
Creates a default instance from the solrconfig.xml.
|
SolrConfig(Path instanceDir,
String name,
InputSource is)
Creates a configuration instance from an instance directory, configuration name and stream.
|
SolrConfig(SolrResourceLoader loader,
String name,
InputSource is)
Creates a configuration instance from a resource loader, a configuration name and a stream.
|
SolrConfig(String name)
Creates a configuration instance from a configuration name.
|
SolrConfig(String name,
InputSource is)
Creates a configuration instance from a configuration name and stream.
|
assertWarnOrFail, complainAboutUnknownAttributes, evaluate, getBool, getDocument, getDouble, getDouble, getFloat, getFloat, getLuceneVersion, getLuceneVersion, getName, getNode, getNode, getNodeList, getOriginalConfig, getResourceLoader, getResourceName, getUnknownAttributes, getUnsubstitutedNode, getVal, getXPath, getZnodeVersion, parseLuceneVersionString, substituteProperties
public static final String DEFAULT_CONF_FILE
public static final List<SolrConfig.SolrPluginInfo> plugins
public static final Map<String,SolrConfig.SolrPluginInfo> classVsSolrPluginInfo
public final int booleanQueryMaxClauseCount
public final CacheConfig filterCacheConfig
public final CacheConfig queryResultCacheConfig
public final CacheConfig documentCacheConfig
public final CacheConfig fieldValueCacheConfig
public final Map<String,CacheConfig> userCacheConfigs
public final boolean useFilterForSortedQuery
public final int queryResultWindowSize
public final int queryResultMaxDocsCached
public final boolean enableLazyFieldLoading
public final boolean useRangeVersionsForPeerSync
public final float hashSetInverseLoadFactor
public final int hashDocSetMaxSize
public final SolrIndexConfig indexConfig
protected SolrConfig.UpdateHandlerInfo updateHandlerInfo
public final int maxWarmingSearchers
public final boolean useColdSearcher
public final Version luceneMatchVersion
protected String dataDir
public final int slowQueryThresholdMillis
public SolrConfig() throws ParserConfigurationException, IOException, SAXException
public SolrConfig(String name) throws ParserConfigurationException, IOException, SAXException
name
- the configuration name used by the loaderParserConfigurationException
IOException
SAXException
public SolrConfig(String name, InputSource is) throws ParserConfigurationException, IOException, SAXException
name
- the configuration nameis
- the configuration streamParserConfigurationException
IOException
SAXException
public SolrConfig(Path instanceDir, String name, InputSource is) throws ParserConfigurationException, IOException, SAXException
instanceDir
- the directory used to create the resource loadername
- the configuration name used by the loader if the stream is nullis
- the configuration streamParserConfigurationException
IOException
SAXException
public SolrConfig(SolrResourceLoader loader, String name, InputSource is) throws ParserConfigurationException, IOException, SAXException
loader
- the resource loadername
- the configuration nameis
- the configuration streamParserConfigurationException
IOException
SAXException
public static SolrConfig readFromResourceLoader(SolrResourceLoader loader, String name)
public static ConfigOverlay getConfigOverlay(SolrResourceLoader loader)
public Map<String,InitParams> getInitParams()
protected SolrConfig.UpdateHandlerInfo loadUpdatehandlerInfo()
public List<PluginInfo> readPluginInfos(String tag, boolean requireName, boolean requireClass)
public SolrRequestParsers getRequestParsers()
public SolrConfig.HttpCachingConfig getHttpCachingConfig()
public SolrConfig.UpdateHandlerInfo getUpdateHandlerInfo()
public String getDataDir()
public List<PluginInfo> getPluginInfos(String type)
type
- The key is FQN of the plugin class there are a few known types : SolrFormatter, SolrFragmenter
SolrRequestHandler,QParserPlugin, QueryResponseWriter,ValueSourceParser,
SearchComponent, QueryConverter, SolrEventListener, DirectoryFactory,
IndexDeletionPolicy, IndexReaderFactory, TransformerFactory
public PluginInfo getPluginInfo(String type)
public int getMultipartUploadLimitKB()
public int getFormUploadLimitKB()
public boolean isHandleSelect()
public boolean isAddHttpRequestToContext()
public boolean isEnableRemoteStreams()
public boolean isEnableStreamBody()
public Map<String,Object> toMap(Map<String,Object> result)
toMap
in interface MapSerializable
protected Properties getSubstituteProperties()
getSubstituteProperties
in class Config
public ConfigOverlay getOverlay()
public RequestParams getRequestParams()
public RequestParams refreshRequestParams()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.