# Stats values lags behind index document updates

**URL:** <https://discuss.elastic.co/t/stats-values-lags-behind-index-document-updates/90491>\
**Category:** Elasticsearch\
**Created:** [June 22, 2017, 3:45pm UTC](https://discuss.elastic.co/t/stats-values-lags-behind-index-document-updates/90491 "2017-06-22T15:45:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_boston](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@elastic\_boston](https://discuss.elastic.co/u/elastic_boston)\
**Post date:** [June 22, 2017, 3:45pm UTC](https://discuss.elastic.co/t/stats-values-lags-behind-index-document-updates/90491/1 "2017-06-22T15:45:10Z")

</div>

I have been adding documents to an index using a bulkprocessor - so a bunch a documents are added in segments. I see that calls to the \_stats API lag behind the updation of the index. So after each segment update, the \_stats call does not return the correct value for a few seconds. Has anyone else observed this?

---

<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 20, 2017, 3:45pm UTC](https://discuss.elastic.co/t/stats-values-lags-behind-index-document-updates/90491/2 "2017-07-20T15:45:12Z")

</div>

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