sample url to create collection:

http//host:8080/solr/admin/collections?action=CREATE&name=collectionname&numShards=2&replicationFactor=3&maxShardsPerNode=2&createNodeSet=
host:8080_solr,host:8080_solr,host:8080_solr,host:8080_solr
&collection.configName=collectionconfig

On Thu, Jan 2, 2020 at 1:56 PM sudhir kumar <gogikarsud...@gmail.com> wrote:

> Hey Vishal,
>
> You can use createNodeSet property while creating collection which will
> allows you to create shards on specified IP.
>
> /admin/collections?action=CREATE&name=*name*&numShards=*number*
> &replicationFactor=*number*&*maxShardsPerNode*=*number*&*createNodeSet*=
> *nodelist*&collection.configName=*configname*
>
>
> Thanks,
>
> Sudhir
>
>
> On Thu, Jan 2, 2020 at 1:49 PM vishal patel <vishalpatel200...@outlook.com>
> wrote:
>
>> When I am creating 2 shards and 2 replicas using admin panel, automatic
>> assign a shard or replica to any IP.
>> I want to make the specific shard or replica to solr instance at the time
>> of creating a collection. Can I?
>>
>> Regards,
>> Vishal
>>
>

Reply via email to