If you’re already using java, just use the CloudSolrClient. 
If you’re using the default router, (CompositeId) it’ll figure out the leaders 
and send documents to the right place for you.

If you’re not using java, then I’d still look there for hints on how to 
duplicate the functionality.



On 4/14/16, 1:27 PM, "Robert Brown" <r...@intelcompute.com> wrote:

>Hi,
>
>I have a collection with 2 shards, 1 replica each.
>
>When I send updates, I currently /admin/ping each of the nodes, and then 
>pick one at random.
>
>I'm guessing it makes more sense to only send updates to one of the 
>leaders, so I'm contemplating getting the collection status instead, and 
>filter out the leaders.
>
>Is there anything else I should be aware of, apart from using a Java 
>client, etc.
>
>I guess the ping becomes redundant?
>
>Thanks,
>Rob
>
>
>

Reply via email to