How does Elasticsearch map Integer doc IDs to shards

Do the responses in this topic help? What algorithm is ElasticSearch create Document _Id based on?Could somebody answer me,plz