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 Thomas Egense <th...@gmail.com> on 2013/10/29 14:17:06 UTC

Re: How to set the shardid?

You can specify the shard in core.properties ie:
core.properties:
name=collection2
shard=shard2

Did this solve it ?

From,
Thomas Egense




On Mon, Feb 25, 2013 at 5:13 PM, Mark Miller <ma...@gmail.com> wrote:

>
> On Feb 25, 2013, at 10:00 AM, "Markus.Mirsberger" <
> markus.mirsberger@gmx.de> wrote:
>
> > How can I fix the shardId used at one server when I create a collection?
> (Im using the solrj collections api to create collections)
>
> You can't do it with the collections API currently. If you want to control
> the shard names explicitly, you have to use the CoreAdmin API to create
> each core - that lets you set the shard id.
>
> - Mark