Here's a blog on the topic of creating cores on particular nodes. http://heliosearch.org/solrcloud-assigning-nodes-machines/
Himanshu: What you wrote works perfectly well. FYW, this can also be done with the Collections API. The Collections API is evolving though, so what commands are available depends on the version of Solr you're using. Best, Erick On Tue, Jul 8, 2014 at 10:14 PM, Himanshu Mehrotra <himanshu.mehro...@snapdeal.com> wrote: > Yes, there is a way. > > One node on which replica needs to be created hit > > curl ' > http://localhost:8983/solr/admin/cores?action=CREATE&name=<corename>&collection=<collection>&shard=< > <http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&collection=collection1&shard=shard2> > shardid>' > > For example > > curl ' > http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&collection=collection1&shard=shard2 > ' > > > see http://wiki.apache.org/solr/SolrCloud#Creating_cores_via_CoreAdmin > for details. > > > Thanks, > > Himanshu > > > > On Wed, Jul 9, 2014 at 9:46 AM, Varun Gupta <varun.vgu...@gmail.com> wrote: > >> Hi, >> >> I am currently using Solr 4.7.2 and have SolrCloud setup running on 2 >> servers with number of shards as 2, replication factor as 2 and mas shards >> per node as 4. >> >> Now, I want to add another server to the SolrCloud as a replica. I can see >> Collection API to add a new replica but that was added in Solr 4.8. Is >> there some way to add a new replica in Solr 4.7.2? >> >> -- >> Thanks >> Varun Gupta >>