Hi, I'm trying to set up cores dynamically. I want to use the same schema.xml and solrconfig.xml for all the created cores, so plan to pass the same instance directory, but different dir directory. Here is what I got in solr.xml by default (I didn't want define any core here, but looks like we have to have at least one core defined before we start the Solr).
<solr persistent="true"> <cores adminPath="/admin/cores"> <core name="core0" instanceDir="."/> </cores> </solr> Now I run the following URL in the browser (as described on wiki - http://wiki.apache.org/solr/CoreAdmin), http://localhost:8080/solr/admin/cores?action=CREATE&name=20090331_1&instanceDir=/Users/opal/temp/chat/solr&dataDir=/Users/opal/temp/chat/solr/data/20090331_1 I get a response, <str name="saved">/Users/opal/temp/chat/solr/solr.xml</str> Now when I check the solr.xml I see, <?xml version='1.0' encoding='UTF-8'?><solr persistent='true'> <cores adminPath='/admin/cores'> <core name='core0' instanceDir='./'/> <core name='20090331_2' instanceDir='/Users/opal/temp/afterchat/solr/'/> </cores> </solr> Note, there is NO dir directory specified. When I check the status (http://localhost:8080/solr/admin/cores?action=STATUS) I see, <str name="name">core0</str> <str name="instanceDir">/Users/opal/temp/afterchat/solr/./</str> <str name="dataDir">/Users/opal/temp/afterchat/solr/./data/</str> ... <str name="name">20090331_2</str> <str name="instanceDir">/Users/opal/temp/afterchat/solr/</str> <str name="dataDir">/Users/opal/temp/afterchat/solr/data/</str> both cores are pointing to the same data directory. My question is how can I create cores on fly and have them point to different data directories so each core write index in different location? Thanks, -vivek