I think you could do this by specifying the shard id of each core in
solr.xml.  Something like...

<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">

  <cores adminPath="/admin/cores" defaultCoreName="core" host="${host:}"
hostPort="${jetty.port:}" hostContext="${hostContext:}"
zkClientTimeout="${zkClientTimeout:15000}">
    <core loadOnStartup="true" instanceDir="/data/core1" transient="false"
name="core1" collection="core" *shard="shard1"*/>
    <core loadOnStartup="true" instanceDir="/data/core2" transient="false"
name="core2" collection="core"* shard="shard2"*/>
    <core loadOnStartup="true" instanceDir="/data/core3" transient="false"
name="core3" collection="core" *shard="shard2"*/>
    <core loadOnStartup="true" instanceDir="/data/core4" transient="false"
name="core4" collection="core"* shard="shard2"*/>
    <core loadOnStartup="true" instanceDir="/data/core5" transient="false"
name="core5" collection="core" *shard="shard2"*/>
    <core loadOnStartup="true" instanceDir="/data/core6" transient="false"
name="core6" collection="core" *shard="shard2"*/>
  </cores>
</solr>

Cheers,
Keith


On Tue, Aug 27, 2013 at 10:01 AM, maephisto <my_sky...@yahoo.com> wrote:

> Hi!
>
> Imagine the following configuration: a SolrCloud cluster, with 3 shards, a
> replication factor of 2 and 6 nodes.
> Now, if i'll add one more node to the cluster ZK will automatically assign
> a
> shard replica to it.
>
> My question is, can i influence which of the shards to be replicated on the
> new node? Can I have 5 replicas for one shard and just 1 for the others ?
>
> Thank you!
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Multiple-replicas-for-specific-shard-tp4086828.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to