# How long takes to ES to make a created document available to be queried?

**URL:** <https://discuss.elastic.co/t/how-long-takes-to-es-to-make-a-created-document-available-to-be-queried/36100>\
**Category:** Elasticsearch\
**Created:** [December 1, 2015, 9:27pm UTC](https://discuss.elastic.co/t/how-long-takes-to-es-to-make-a-created-document-available-to-be-queried/36100 "2015-12-01T21:27:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wil](https://avatars.discourse-cdn.com/v4/letter/w/59ef9b/32.png) [@wil](https://discuss.elastic.co/u/wil)\
**Post date:** [December 1, 2015, 9:27pm UTC](https://discuss.elastic.co/t/how-long-takes-to-es-to-make-a-created-document-available-to-be-queried/36100/1 "2015-12-01T21:27:35Z")

</div>

I have a process that creates a document in ES, then one second after another process runs  
and try to make use of the previously created document.  
For some reason the second process is not able to find the document created by the first process.

could be that the timeframe between the two processes calls is not enough? If so, can someone point me to some documentation where I can read about it, any help will be appreciated.

I'm using:  
Elasticsearch client for Node.js v2.4.3  
elastic search version: 1.6.2  
lucene version: 4.10.4

Thanks in advance,

Wil.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 1, 2015, 9:36pm UTC](https://discuss.elastic.co/t/how-long-takes-to-es-to-make-a-created-document-available-to-be-queried/36100/2 "2015-12-01T21:36:19Z")

</div>

Take a look at this chapter - [https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html#refresh-api](https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html#refresh-api)

---

<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 5, 2017, 11:34pm UTC](https://discuss.elastic.co/t/how-long-takes-to-es-to-make-a-created-document-available-to-be-queried/36100/3 "2017-07-05T23:34:19Z")

</div>

Closed on July 5, 2017, 11:34pm UTC


