# Is there any way i can mask a doc of particular index without actually deleting it

**URL:** <https://discuss.elastic.co/t/is-there-any-way-i-can-mask-a-doc-of-particular-index-without-actually-deleting-it/136650>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 9:17am UTC](https://discuss.elastic.co/t/is-there-any-way-i-can-mask-a-doc-of-particular-index-without-actually-deleting-it/136650 "2018-06-20T09:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kish](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@kish](https://discuss.elastic.co/u/kish)\
**Post date:** [June 20, 2018, 9:17am UTC](https://discuss.elastic.co/t/is-there-any-way-i-can-mask-a-doc-of-particular-index-without-actually-deleting-it/136650/1 "2018-06-20T09:17:56Z")

</div>

Hi,

I have requirement like, for one particular scenario i may need to mask a doc sax X-doc from a particular index say 'register'. So that whenever i do search on the 'register' index i **should not be** able to see that particular X-doc in search-hits/results.

Again after some time i will be required to enable the particular doc in register index. So that again when i do a search on the register index i **should be able** to see X-doc in search results.

---

<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 18, 2018, 9:18am UTC](https://discuss.elastic.co/t/is-there-any-way-i-can-mask-a-doc-of-particular-index-without-actually-deleting-it/136650/2 "2018-07-18T09:18:01Z")

</div>

Closed on July 18, 2018, 9:18am UTC

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