You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by kelong <ke...@gmail.com> on 2011/09/13 10:04:24 UTC

update solr.xml error after create a new core

Hi
    I create a new core dynamically with

http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&collection=collection1&shard=shard2&instanceDir=.&dataDir=example2\solr\data

    Before creating the solr.xml is

* <solr persistent="true">*
*    <core name="collection1" instanceDir="." shard="shard1"/>*
*    </cores>*
* </solr>*

     After creating, the solr.xml becomes

<solr persistent="true">
  <cores defaultCoreName="collection1" adminPath="/admin/cores"
zkClientTimeout="10000" hostPort="8983" hostContext="solr">
    <core shard="shard2" instanceDir=".\" name="mycore"
dataDir="\example2\solr\data" collection="collection1"/>
    <core shard="shard2" instanceDir=".\" name="mycore"
dataDir="\example2\solr\data" collection="collection1"/>
  </cores>
</solr>

the new core is added twice and the old one information is missed. Can any
one exmplain why this happens? Is there any error in my operation?

Thanks!

Re: update solr.xml error after create a new core

Posted by Mark Miller <ma...@gmail.com>.
When is your build from? There was a bug fixed a couple weeks ago that sounds like this issue.

On Sep 13, 2011, at 4:04 AM, kelong wrote:

> Hi 
>     I create a new core dynamically with 
>     http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&collection=collection1&shard=shard2&instanceDir=.&dataDir=example2\solr\data
> 
>     Before creating the solr.xml is 
> 
>  <solr persistent="true">
>     <core name="collection1" instanceDir="." shard="shard1"/>
>     </cores>
>  </solr>
> 
>      After creating, the solr.xml becomes
>      
> <solr persistent="true">
>   <cores defaultCoreName="collection1" adminPath="/admin/cores" zkClientTimeout="10000" hostPort="8983" hostContext="solr">
>     <core shard="shard2" instanceDir=".\" name="mycore" dataDir="\example2\solr\data" collection="collection1"/>
>     <core shard="shard2" instanceDir=".\" name="mycore" dataDir="\example2\solr\data" collection="collection1"/>
>   </cores>
> </solr>
> 
> the new core is added twice and the old one information is missed. Can any one exmplain why this happens? Is there any error in my operation?
> 
> Thanks!

- Mark Miller
lucidimagination.com
2011.lucene-eurocon.org | Oct 17-20 | Barcelona











---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org