# How can we get all ID's which are generated by Elastic Search for each record while using bulk insert?

**URL:** <https://discuss.elastic.co/t/how-can-we-get-all-ids-which-are-generated-by-elastic-search-for-each-record-while-using-bulk-insert/20793>\
**Category:** Elasticsearch\
**Created:** [November 17, 2014, 6:56pm UTC](https://discuss.elastic.co/t/how-can-we-get-all-ids-which-are-generated-by-elastic-search-for-each-record-while-using-bulk-insert/20793 "2014-11-17T18:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subbarao\_Kondragunta](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Subbarao\_Kondragunta](https://discuss.elastic.co/u/Subbarao_Kondragunta)\
**Post date:** [November 17, 2014, 6:56pm UTC](https://discuss.elastic.co/t/how-can-we-get-all-ids-which-are-generated-by-elastic-search-for-each-record-while-using-bulk-insert/20793/1 "2014-11-17T18:56:59Z")

</div>

How can we get all ID's which are generated by Elastic Search for each  
record while using bulk insert ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mikemccand](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mikemccand](https://discuss.elastic.co/u/mikemccand)\
**Post date:** [November 17, 2014, 8:34pm UTC](https://discuss.elastic.co/t/how-can-we-get-all-ids-which-are-generated-by-elastic-search-for-each-record-while-using-bulk-insert/20793/2 "2014-11-17T20:34:37Z")

</div>

The bulk response tells you the id assigned to each indexed doc.

See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Mike McCandless

[http://blog.mikemccandless.com](http://blog.mikemccandless.com)

On Mon, Nov 17, 2014 at 1:56 PM, Subbarao Kondragunta \<  
[subbu2personal@gmail.com](mailto:subbu2personal@gmail.com)\> wrote:

> How can we get all ID's which are generated by Elastic Search for each  
> record while using bulk insert ?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d3ae9ce7-831b-421c-86c1-a8b6b0ec39db%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAD7smRdPZ6xJ2Fn3XN7cDYnM12NO3A0GtEiapuP1w1Nxiq2SGg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAD7smRdPZ6xJ2Fn3XN7cDYnM12NO3A0GtEiapuP1w1Nxiq2SGg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:49am UTC](https://discuss.elastic.co/t/how-can-we-get-all-ids-which-are-generated-by-elastic-search-for-each-record-while-using-bulk-insert/20793/3 "2017-07-06T00:49:24Z")

</div>


