Hello,

I'm having issues with multicore management. 
What I want to do :
*1st point :* Create new cores on the fly without restarting the Solr
instance
*2nd point :* Have these new cores registered in case of restarting Solr
instance

So, I tried *config A* :
/solr.xml/ :



Then I duplicated the /example/multicore/core2/ directory to
/example/multicore/core3/ and ran the following URL :
http://localhost:8983/solr/admin/cores?wt=json&indexInfo=false&action=CREATE&name=core3&instanceDir=core3&dataDir=data&config=solrconfig.xml&schema=managed-schema.xml
This was *successfull*. My core was then listed in the Solr Admin UI
http://localhost:8983/solr/#/~cores
Problem : after restarting the start.jar, *only core1 and core2 appear*. 
This config handles the *1st point* but not the *2nd one*.

So I tried *config B* :
/solr.xml/ :


Then I put a /core.properties/ file in each core directory with
/name=core1/, /name=core2/.
core1 and core2 are *automatically discovered*. 
I duplicated core2 to core3 directory and changed /core.properties/ with
/name=core3/.
Then I ran the CREATE URL :
http://localhost:8983/solr/admin/cores?wt=json&indexInfo=false&action=CREATE&name=core3&instanceDir=core3&dataDir=data&config=solrconfig.xml&schema=managed-schema.xml
*SuccessFull*. BUT : my core *isn't listed* in the Admin UI. So, I tried to
reload it :
http://localhost:8983/solr/admin/cores?action=RELOAD&core=core3&wt=json&indent=true
{
  "responseHeader":{
    "status":400,
    "QTime":3},
  "error":{
    "msg":"Core with core name [core3] does not exist.",
    "code":400}}

However :
http://localhost:8983/solr/admin/cores?action=STATUS&core=core3&wt=json&indent=true
{
  "responseHeader":{
    "status":0,
    "QTime":1},
  "initFailures":{},
  "status":{
    "core3":{}}}
    
When I restart start.jar, the core is OK.
So, this config handles the *2nd point* but not the *1st one*.

What am I doing wrong ?
I'm running Solr 4.7.0.

Thanks,
Ben



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Issues-with-multicore-management-tp4121107.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to