Can we run a search query on a particular shard of the index?

Is there a way to get documents from a specific shard?

like GET index&shard=2/_search

Yes, you can do this with the search preference feature: GET /index/_search?preference=_shards:2,3.

Oh nice. Our recovery/relocating process for a particular shard is really really slow. It was 20 percent 2 days before and 60 percent now. It was not this slow before. We have removed replica from that index and only have primary shards. Could that be the reason for the slow recovery

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.