I am trying to configure a multi-core solr server for our web application, but I am having problems creating a new kernel through the coreadmin service.
I use Solr-4.4 because 4.3 ran into problems preserving the kernels in the solr.xml file (datadir was not saved) So I use the new configuration of Solr.xml 4.4 and higher
Now my solr.xml looks like this:
<solr> <str name="coreRootDirectory">default-instance/cores/</str> </solr>
solrconfig.xml is located in (solrhome) /default-instance/conf/solrconfig.xml
When trying to create a kernel with a url
http:/example.org/solr/admin/cores?action=CREATE&name=test-name&schema=schema-test.xml&loadOnStartup=false
gives me an error:
Error CREATEing SolrCore 'test-name': cannot create kernel: test-name Cause: Cannot find resource 'solrconfig.xml' in classpath or 'default-instance / corees / test-name / conf /', cwd = / var / lib / tomcat7
The following seems to work:
http:/example.org/solr/admin/cores?action=CREATE&name=test-name&schema=schema-test.xml&loadOnStartup=false&config=/absolute/file/path/to/solrconfig.xml
The problem is that this seems to work only with the absolute path (or perhaps with the relative path from / var / lib / tomcat 7), which is not a workable solution.
What I'm looking for is a way to place the solrconfig.xml file so that it can be used to create new kernels using this configuration (or a way to create these kernels with the current location).
More or less the same will be required for circuits
source share