# \_bulk not indexing all documents?

**URL:** <https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687>\
**Category:** Elasticsearch\
**Created:** [February 10, 2013, 3:08pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687 "2013-02-10T15:08:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 10, 2013, 3:08pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/1 "2013-02-10T15:08:34Z")

</div>

Hi,

I'm testing indexing with elasticsearch and lucene (in parallel) of the  
same data, it seems that the "\_bulk" is not indexing all documents.

Thanks,

Ophir

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 10, 2013, 3:14pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/2 "2013-02-10T15:14:43Z")

</div>

Are you setting ID for each doc?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 10 févr. 2013 à 16:08, Ophir Michaeli [ophirmichaeli@gmail.com](mailto:ophirmichaeli@gmail.com) a écrit :

> Hi,
> 
> I'm testing indexing with elasticsearch and lucene (in parallel) of the same data, it seems that the "\_bulk" is not indexing all documents.
> 
> ## Thanks, Ophir
> 
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 10, 2013, 4:12pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/3 "2013-02-10T16:12:31Z")

</div>

What happens if the ID is not unique, meaning if I by mistake set the same  
id to more than one document?  
Thanks

On Sunday, February 10, 2013 5:14:43 PM UTC+2, David Pilato wrote:

> Are you setting ID for each doc?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 10 févr. 2013 à 16:08, Ophir Michaeli \<[ophirm...@gmail.com](mailto:ophirm...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> Hi,
> 
> I'm testing indexing with elasticsearch and lucene (in parallel) of the  
> same data, it seems that the "\_bulk" is not indexing all documents.
> 
> Thanks,
> 
> Ophir
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 10, 2013, 4:13pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/4 "2013-02-10T16:13:22Z")

</div>

You will update existing document with the last version you send.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 10 févr. 2013 à 17:12, Ophir Michaeli [ophirmichaeli@gmail.com](mailto:ophirmichaeli@gmail.com) a écrit :

What happens if the ID is not unique, meaning if I by mistake set the same id to more than one document?  
Thanks

On Sunday, February 10, 2013 5:14:43 PM UTC+2, David Pilato wrote:

> Are you setting ID for each doc?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 10 févr. 2013 à 16:08, Ophir Michaeli [ophirm...@gmail.com](mailto:ophirm...@gmail.com) a écrit :
> 
> > Hi,
> > 
> > I'm testing indexing with elasticsearch and lucene (in parallel) of the same data, it seems that the "\_bulk" is not indexing all documents.
> > 
> > ## Thanks, Ophir
> > 
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 10, 2013, 4:18pm UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/5 "2013-02-10T16:18:33Z")

</div>

OK, thanks, this is probably the problem.

On Sunday, February 10, 2013 6:13:22 PM UTC+2, David Pilato wrote:

> You will update existing document with the last version you send.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 10 févr. 2013 à 17:12, Ophir Michaeli \<[ophirm...@gmail.com](mailto:ophirm...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> What happens if the ID is not unique, meaning if I by mistake set the same  
> id to more than one document?  
> Thanks
> 
> On Sunday, February 10, 2013 5:14:43 PM UTC+2, David Pilato wrote:
> 
> > Are you setting ID for each doc?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 10 févr. 2013 à 16:08, Ophir Michaeli [ophirm...@gmail.com](mailto:ophirm...@gmail.com) a écrit :
> > 
> > Hi,
> > 
> > I'm testing indexing with elasticsearch and lucene (in parallel) of the  
> > same data, it seems that the "\_bulk" is not indexing all documents.
> > 
> > Thanks,
> > 
> > Ophir
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:52am UTC](https://discuss.elastic.co/t/-bulk-not-indexing-all-documents/10687/6 "2017-07-06T02:52:12Z")

</div>


