问题
回复
<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">17</int>
</lst>
<lst name="error">
<str name="msg">
Error CREATEing SolrCore 'new_core': Unable to create core: new_core Caused by: Can't find resource 'solrconfig.xml' in classpath or '/var/lib/tomcat7/solr/new_core/conf'
</str>
<int name="code">400</int>
</lst>
</response>
Run Code Online (Sandbox Code Playgroud)
我提供了链接: https: //wiki.apache.org/solr/CoreAdmin
solr.xml代码
<solr persistent="false">
<cores adminPath="/admin/cores">
<core name="afeef" instanceDir="afeef" />
</cores>
</solr>
Run Code Online (Sandbox Code Playgroud)错误:
SolrCore Initialization Failures
afeef: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file /var/lib/tomcat7/solr/afeef/solrconfig.xml
coreX: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file /var/lib/tomcat7/solr/path_to_instance_directory/config_file_name.xml
new_core: …Run Code Online (Sandbox Code Playgroud)