public class SolrConfig extends XmlConfigFile 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 |
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 |
Map<String,CacheConfig> |
userCacheConfigs |
Constructor and Description |
---|
SolrConfig(Path instanceDir,
String name)
TEST-ONLY: Creates a configuration instance from an instance directory and file name
|
assertWarnOrFail, complainAboutUnknownAttributes, evaluate, getBool, getDocument, getDouble, getDouble, getFloat, getFloat, getName, getNode, getNode, getNodeList, getResourceLoader, getResourceName, getUnknownAttributes, getUnsubstitutedNode, getVal, getXPath, getZnodeVersion
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 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(Path instanceDir, String name) throws ParserConfigurationException, IOException, SAXException
instanceDir
- the directory used to create the resource loadername
- the configuration name used by the loader if the stream is nullParserConfigurationException
IOException
SAXException
public static SolrConfig readFromResourceLoader(SolrResourceLoader loader, String name, boolean isConfigsetTrusted, Properties substitutableProperties)
public static ConfigOverlay getConfigOverlay(SolrResourceLoader loader)
public Map<String,InitParams> getInitParams()
protected SolrConfig.UpdateHandlerInfo loadUpdatehandlerInfo()
protected static long convertHeapOptionStyleConfigStringToBytes(String configStr)
configStr
- the config setting to parsepublic 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 int getInt(String path)
getInt
in class XmlConfigFile
public int getInt(String path, int def)
getInt
in class XmlConfigFile
public boolean getBool(String path, boolean def)
getBool
in class XmlConfigFile
public String get(String path)
get
in class XmlConfigFile
public String get(String path, String def)
get
in class XmlConfigFile
public Map<String,Object> toMap(Map<String,Object> result)
toMap
in interface MapSerializable
public Properties getSubstituteProperties()
XmlConfigFile
getSubstituteProperties
in class XmlConfigFile
public ConfigOverlay getOverlay()
public RequestParams getRequestParams()
public String maxPackageVersion(String pkg)
public RequestParams refreshRequestParams()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.