# How does Elasticsearch map Integer doc IDs to shards

**URL:** <https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329>\
**Category:** Elasticsearch\
**Created:** [January 16, 2021, 6:50pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329 "2021-01-16T18:50:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 16, 2021, 11:16pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329/2 "2021-01-16T23:16:46Z")

</div>

Do the responses in this topic help? [What algorithm is ElasticSearch create Document \_Id based on?Could somebody answer me，plz](https://discuss.elastic.co/t/what-algorithm-is-elasticsearch-create-document-id-based-on-could-somebody-answer-me-plz/166317)

---

_[View the full topic](https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329)._
