Solr (4.4+) solrconfig.xml location when creating cores -
i'm trying setup multi core solr server our webapplication i'm having trouble creating new core through coreadmin service.
i'm using solr-4.4 because 4.3 ran problems persisting cores in solr.xml (datadir wasn't preserved) i'm using new solr.xml configuration 4.4 , beyond
my solr.xml looks like:
<solr> <str name="corerootdirectory">default-instance/cores/</str> </solr>
solrconfig.xml located @ (solrhome)/default-instance/conf/solrconfig.xml
when trying create core url
http:/example.org/solr/admin/cores?action=create&name=test-name&schema=schema-test.xml&loadonstartup=false
gives me error:
error createing solrcore 'test-name': unable create core: test-name caused by: can't find resource 'solrconfig.xml' in classpath or 'default-instance/cores/test-name/conf/', cwd=/var/lib/tomcat7
the following seems 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 seems work absolute path (or possibly relative path /var/lib/tomcat7) not workable solution.
what i'm looking way place solrconfig.xml can used create new cores config (or way create cores current location).
more or less same needed schemas
this worked. ran on command line , viewable in admin console:
solr create -c (name core or collection)
see readme.txt more info.
Comments
Post a Comment