# Index Request to Searchable - Latency

**URL:** <https://discuss.elastic.co/t/index-request-to-searchable-latency/50778>\
**Category:** Elasticsearch\
**Created:** [May 23, 2016, 10:41pm UTC](https://discuss.elastic.co/t/index-request-to-searchable-latency/50778 "2016-05-23T22:41:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevZero](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@DevZero](https://discuss.elastic.co/u/DevZero)\
**Post date:** [May 23, 2016, 10:41pm UTC](https://discuss.elastic.co/t/index-request-to-searchable-latency/50778/1 "2016-05-23T22:41:03Z")

</div>

We're considering Elasticsearch for our data search solution and are wondering about the latency between the request to index a document and when the document becomes searchable. How long after a request to index a document is received will that document be surfaced via the search APIs?

I recognize that this is a relatively vague question and depends on a variety of factors but I'm looking to get an idea at least of the order of magnitude. Are we talking seconds or minutes? We would be expecting to generate a few dozen indexing requests per second at peak and would like to see the documents searchable as quickly as possible.

Also is the indexing request a blocking call? Does Elasticsearch return "SUCCESS" once the request is received or does it wait until the document has been indexed successfully?

---

<div class="post-metadata">

**Author:** ![bhatch](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bhatch](https://discuss.elastic.co/u/bhatch)\
**Post date:** [May 23, 2016, 10:55pm UTC](https://discuss.elastic.co/t/index-request-to-searchable-latency/50778/2 "2016-05-23T22:55:36Z")

</div>

Take a look at  
[https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html)  
Once a document is indexed it is usually available for search within a second or so. You can change the setting a bit, but it could impact performance.

I believe ElasticSearch will return a success message once the request has been written to the primary and replica shards. Then a second or so later it will become searchable. However I don't remember where I heard that so I might be wrong.

---

<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:** [May 24, 2016, 9:11pm UTC](https://discuss.elastic.co/t/index-request-to-searchable-latency/50778/3 "2016-05-24T21:11:44Z")

</div>

> [@bhatch](#):
>
> I believe Elasticsearch will return a success message once the request has been written to the primary and replica shards. Then a second or so later it will become searchable.

That is correct in 2.X. in 1.X you got the OK after we wrote to the primary.

---

<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, 10:49pm UTC](https://discuss.elastic.co/t/index-request-to-searchable-latency/50778/4 "2017-07-05T22:49:21Z")

</div>


