On 10/10/22 06:00, Satya Nand wrote:
Yes, we are using solr cloud. The reason I don't want to specify the
shards' names is that a request can be sent to any replica of a shard based
on preference and availability but I specifically want to limit a request
to a PULL-type replica of a shard.

I am trying to replicate the behavior on this link,

This is a perfect use case for the shards.preference parameter. Use "shards.preference=replica.type:PULL" along with a list of shard names.  If there is at least one PULL replica available for a shard, it will be used. It will only try other replica types as a last resort.

https://solr.apache.org/guide/8_4/distributed-requests.html#shards-preference-parameter

Thanks,
Shawn

Reply via email to