# Read after write consistency (test refresh interval)

**URL:** <https://discuss.elastic.co/t/read-after-write-consistency-test-refresh-interval/332809>\
**Category:** Elasticsearch\
**Created:** [May 8, 2023, 11:53am UTC](https://discuss.elastic.co/t/read-after-write-consistency-test-refresh-interval/332809 "2023-05-08T11:53:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![searchwithme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/searchwithme/32/137075_2.png) [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Post date:** [May 8, 2023, 11:53am UTC](https://discuss.elastic.co/t/read-after-write-consistency-test-refresh-interval/332809/1 "2023-05-08T11:53:14Z")

</div>

I have a refresh interval of 1 s. I want to confirm that this is actually happening. Is there a test to validate the item getting indexed is getting searchable in a second? If so, How do I do that? I am ingesting documents via \_bulk. While this is helping, how could I send search requests **to prove** that the documents are retrieved within 1 s of getting indexed

Please share your insights!

---

<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 11, 2023, 1:05am UTC](https://discuss.elastic.co/t/read-after-write-consistency-test-refresh-interval/332809/2 "2023-05-11T01:05:33Z")

</div>

You'd need to run a looping query against the index to check this, there's nothing native to the stack that can provide this guarantee.

---

<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:** [June 8, 2023, 1:06am UTC](https://discuss.elastic.co/t/read-after-write-consistency-test-refresh-interval/332809/3 "2023-06-08T01:06:13Z")

</div>

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