# Refresh=wait\_for for Elasticsearch 2.2

**URL:** <https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767>\
**Category:** Elasticsearch\
**Created:** [November 30, 2017, 2:19pm UTC](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767 "2017-11-30T14:19:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manast](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manast/32/13705_2.png) [@manast](https://discuss.elastic.co/u/manast)\
**Post date:** [November 30, 2017, 2:19pm UTC](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767/1 "2017-11-30T14:19:05Z")

</div>

Hi there,  
I am using Elasticsearch version 2.2 and I am asking if there is any possibility for an update query to wait until changes have been made visible for search. In other words I am looking for a solution similar to "refresh=wait\_for" but for version 2.2.  
Is there possibly a way to ask Elasticsearch whether an index is "dirty", i.e. whether latest results are not yet available for search?  
Thanks,  
Michail

---

<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:** [November 30, 2017, 3:37pm UTC](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767/2 "2017-11-30T15:37:12Z")

</div>

No. You need to upgrade to 5.x at least.

---

<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:** [December 28, 2017, 3:37pm UTC](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767/3 "2017-12-28T15:37:17Z")

</div>

Closed on December 28, 2017, 3:37pm UTC

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