# Soft delete in elasticsearch

**URL:** https://discuss.elastic.co/t/soft-delete-in-elasticsearch/76135
**Category:** Elasticsearch
**Created:** [February 23, 2017, 2:09am UTC](https://discuss.elastic.co/t/soft-delete-in-elasticsearch/76135 "2017-02-23T02:09:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Greentea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greentea/32/15924_2.png) [@Greentea](https://discuss.elastic.co/u/Greentea)
#### Post date: [February 23, 2017, 2:09am UTC](https://discuss.elastic.co/t/soft-delete-in-elasticsearch/76135/1 "2017-02-23T02:09:28Z")

</div>

Hi!  
I am currently using elasticsearch as my search engine.  
here's what going on. I got about 1000 row in MySQL. There is a column call "status" which got "H", "S" two type and it means hide and show.  
Since, we will change the status frequently, I want to ask how to make the status "H" row unsearchable but it will exist in elasticsearch?

---

<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: [February 23, 2017, 2:10am UTC](https://discuss.elastic.co/t/soft-delete-in-elasticsearch/76135/2 "2017-02-23T02:10:29Z")

</div>

You cannot do that.

---

<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: [March 23, 2017, 2:10am UTC](https://discuss.elastic.co/t/soft-delete-in-elasticsearch/76135/3 "2017-03-23T02:10:30Z")

</div>

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