# Missing documents while updating them

**URL:** https://discuss.elastic.co/t/missing-documents-while-updating-them/14198
**Category:** Elasticsearch
**Created:** [October 31, 2013, 5:30pm UTC](https://discuss.elastic.co/t/missing-documents-while-updating-them/14198 "2013-10-31T17:30:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Petr\_Yanovich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr_yanovich/32/2007_2.png) [@Petr\_Yanovich](https://discuss.elastic.co/u/Petr_Yanovich)
#### Post date: [October 31, 2013, 5:30pm UTC](https://discuss.elastic.co/t/missing-documents-while-updating-them/14198/1 "2013-10-31T17:30:59Z")

</div>

In pretty straigtforward scenario I am missing documents.

1. Check if document exists
2. If it is not: upsert new one or update some data (increment counter for  
example)

I don't delete any documents. Only upsert and update them.  
But sometimes ES answers that document doesn't exists and upsert command  
inserts new document. While some time ago it had already created one.

So sometimes all my "counters" for some documents drops down. Maybe while  
document is updating it doesnt "exists"? So two sequential updates makes me  
cry?

How could I discover where is a problem?

ty

--  
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: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [November 1, 2013, 2:21pm UTC](https://discuss.elastic.co/t/missing-documents-while-updating-them/14198/2 "2013-11-01T14:21:08Z")

</div>

Hey,

I did not really understand your problem. Is there any chance you can  
recreate the problem using curl and put it all into a gist, so we could  
check, where the problem is (and reproduce it locally in case it is a bug)?

Also include information like your elasticsearch and jvm versions, see  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help) as an example

Thanks a lot!

--Alex

On Thu, Oct 31, 2013 at 6:30 PM, Petr Yanovich  
[pedro.yanoviches@gmail.com](mailto:pedro.yanoviches@gmail.com)wrote:

> In pretty straigtforward scenario I am missing documents.
> 
> 1. Check if document exists
> 2. If it is not: upsert new one or update some data (increment counter for  
> example)
> 
> I don't delete any documents. Only upsert and update them.  
> But sometimes ES answers that document doesn't exists and upsert command  
> inserts new document. While some time ago it had already created one.
> 
> So sometimes all my "counters" for some documents drops down. Maybe while  
> document is updating it doesnt "exists"? So two sequential updates makes me  
> cry?
> 
> How could I discover where is a problem?
> 
> ty
> 
> --  
> 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: ![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:09am UTC](https://discuss.elastic.co/t/missing-documents-while-updating-them/14198/3 "2017-07-06T02:09:19Z")

</div>


