You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Peter Kirk <pk...@alpha-solutions.dk> on 2013/05/06 09:04:34 UTC
action=CREATE
Hi
I have a core definition in solr.xml which looks like the following:
<core instanceDir="cores/major" name="MajorIndex">
<property name="language" value="English" />
</core>
If I instead want to create this core with a CREATE command, how do I also supply a property - like "language" in the above?
For example, some sort of request:
http://localhost:8080/solr/admin/cores?action=CREATE&name=MajorIndex&instanceDir=cores/major&property=???
Thanks!
Re: action=CREATE
Posted by Erick Erickson <er...@gmail.com>.
http://wiki.apache.org/solr/CoreAdmin#CREATE
"Core properties can be specified when creating a new core using
optional property.name=value request parameters, similar to <property>
tag inside solr.xml."
haven't tried it myself though...
Best
Erick
On Mon, May 6, 2013 at 3:04 AM, Peter Kirk <pk...@alpha-solutions.dk> wrote:
> Hi
>
> I have a core definition in solr.xml which looks like the following:
>
> <core instanceDir="cores/major" name="MajorIndex">
> <property name="language" value="English" />
> </core>
>
> If I instead want to create this core with a CREATE command, how do I also supply a property - like "language" in the above?
>
> For example, some sort of request:
> http://localhost:8080/solr/admin/cores?action=CREATE&name=MajorIndex&instanceDir=cores/major&property=???
>
> Thanks!
>
>
>