# Exclude "in-progress" documents in search

**URL:** https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094
**Category:** Elasticsearch
**Created:** [April 16, 2018, 1:23am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094 "2018-04-16T01:23:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mattkallo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkallo/32/109746_2.png) [@mattkallo](https://discuss.elastic.co/u/mattkallo)
#### Post date: [April 16, 2018, 1:23am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094/1 "2018-04-16T01:23:11Z")

</div>

Hi, Is there a way to mark a document "in-process" or to set it as "non-visible" to the search? Our requirement is do some post-processing after the document is indexed, however we don't want those document to appear in search results till the processing is complete.

We can do this by creating a field inside the document to maintain the status and applying a filter while querying. But wanted to check if ES itself provides any such feature at a higher level that we can utilize?

---

<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: [April 16, 2018, 1:24am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094/2 "2018-04-16T01:24:22Z")

</div>

Elasticsearch has no concept of this. Your best option would be to create your own field and then filter on that.

---

<div class="post-metadata">

### Author: ![mattkallo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkallo/32/109746_2.png) [@mattkallo](https://discuss.elastic.co/u/mattkallo)
#### Post date: [April 16, 2018, 2:18am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094/3 "2018-04-16T02:18:22Z")

</div>

@warkolm Thanks for clarifying. Does updating a boolean field re-index the entire document? Is there a way to optimize that?

---

<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: [April 16, 2018, 3:36am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094/4 "2018-04-16T03:36:53Z")

</div>

Yes it does, no there's not.

---

<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: [May 14, 2018, 3:37am UTC](https://discuss.elastic.co/t/exclude-in-progress-documents-in-search/128094/5 "2018-05-14T03:37:23Z")

</div>

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