# Search After API - index state and updated documents

**URL:** https://discuss.elastic.co/t/search-after-api-index-state-and-updated-documents/90792
**Category:** Elasticsearch
**Created:** [June 26, 2017, 7:49am UTC](https://discuss.elastic.co/t/search-after-api-index-state-and-updated-documents/90792 "2017-06-26T07:49:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yoav](https://avatars.discourse-cdn.com/v4/letter/y/58f4c7/32.png) [@yoav](https://discuss.elastic.co/u/yoav)
#### Post date: [June 26, 2017, 7:49am UTC](https://discuss.elastic.co/t/search-after-api-index-state-and-updated-documents/90792/1 "2017-06-26T07:49:51Z")

</div>

Is there any way to prevent the previous search results to be returned from the search after API?  
I want to prevent the same document returning twice...(this could happen if the document was updated between search after API calls)

Thanks:)

---

<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 24, 2017, 7:49am UTC](https://discuss.elastic.co/t/search-after-api-index-state-and-updated-documents/90792/2 "2017-07-24T07:49:51Z")

</div>

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