# Scroll search returns old versions of documents

**URL:** <https://discuss.elastic.co/t/scroll-search-returns-old-versions-of-documents/23123>\
**Category:** Elasticsearch\
**Created:** [April 7, 2015, 8:19am UTC](https://discuss.elastic.co/t/scroll-search-returns-old-versions-of-documents/23123 "2015-04-07T08:19:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielg](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@danielg](https://discuss.elastic.co/u/danielg)\
**Post date:** [April 7, 2015, 8:19am UTC](https://discuss.elastic.co/t/scroll-search-returns-old-versions-of-documents/23123/1 "2015-04-07T08:19:08Z")

</div>

Hi all!

We currently using ES 1.3.7 and we are experiencing some weird behavior.  
Currently we are using delete by query API, and since in 1.5.0 it became  
deprecated (we are planning to upgrade) we are trying to use the scroll API  
and bulk delete queries.

The problem occurs when we update some documents and after that execute a  
scroll API call. After printing the scroll API result, we've noticed that  
the printed documents (the ones that should have been updated) contain old  
information.

We've tried to force flush on the index, but it appears that the response  
is returned before the flush has finished.

Any idea how we can verify indexing operations currently in progress?

--  
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/76001d54-3cc1-4f00-aa74-92d588190d63%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76001d54-3cc1-4f00-aa74-92d588190d63%40googlegroups.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:21am UTC](https://discuss.elastic.co/t/scroll-search-returns-old-versions-of-documents/23123/2 "2017-07-06T00:21:15Z")

</div>


