# Autogenerated IDs settings

**URL:** <https://discuss.elastic.co/t/autogenerated-ids-settings/197607>\
**Category:** Elasticsearch\
**Created:** [August 31, 2019, 7:22pm UTC](https://discuss.elastic.co/t/autogenerated-ids-settings/197607 "2019-08-31T19:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamad-Sobhie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohamad-sobhie/32/53623_2.png) [@Mohamad-Sobhie](https://discuss.elastic.co/u/Mohamad-Sobhie)\
**Post date:** [August 31, 2019, 7:22pm UTC](https://discuss.elastic.co/t/autogenerated-ids-settings/197607/1 "2019-08-31T19:22:14Z")

</div>

Is there a way to edit the settings of the autogenerated Ids in Elasticsearch, like the length of it, specific syntax etc? and is it possible to make Elasticsearch generate all ids even if some documents have the id set when bulking?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 31, 2019, 7:39pm UTC](https://discuss.elastic.co/t/autogenerated-ids-settings/197607/2 "2019-08-31T19:39:57Z")

</div>

> [@Mohamad-Sobhie](#):
>
> Is there a way to edit the settings of the autogenerated Ids in Elasticsearch, like the length of it, specific syntax etc?

No, there is not.

> [@Mohamad-Sobhie](#):
>
> and is it possible to make Elasticsearch generate all ids even if some documents have the id set when bulking?

If a document ID is set this will always be used, although it may be possible to unset it using an ingest pipeline (I have not tried).

---

<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:** [September 28, 2019, 7:40pm UTC](https://discuss.elastic.co/t/autogenerated-ids-settings/197607/3 "2019-09-28T19:40:12Z")

</div>

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