# How to apply custom shard selection algorithm in Elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-apply-custom-shard-selection-algorithm-in-elasticsearch/274994>\
**Category:** Elasticsearch\
**Created:** [June 4, 2021, 2:18pm UTC](https://discuss.elastic.co/t/how-to-apply-custom-shard-selection-algorithm-in-elasticsearch/274994 "2021-06-04T14:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashasvi\_Raj\_Pant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashasvi_raj_pant/32/35022_2.png) [@Yashasvi\_Raj\_Pant](https://discuss.elastic.co/u/Yashasvi_Raj_Pant)\
**Post date:** [June 4, 2021, 2:18pm UTC](https://discuss.elastic.co/t/how-to-apply-custom-shard-selection-algorithm-in-elasticsearch/274994/1 "2021-06-04T14:18:54Z")

</div>

I came across some papers where custom shard selection algorithms like ReDDE, Sushi, and Rank-S are applied instead of default ones. One of them is [here](https://www.sciencedirect.com/science/article/pii/S1877050920308395). How can we apply a custom shard selection algorithm in Elasticsearch instead of the default one? Should we modify their open-source code?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 2, 2021, 2:18pm UTC](https://discuss.elastic.co/t/how-to-apply-custom-shard-selection-algorithm-in-elasticsearch/274994/2 "2021-07-02T14:18:55Z")

</div>

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