# Removing entry from the \_suggest

**URL:** <https://discuss.elastic.co/t/removing-entry-from-the--suggest/22926>\
**Category:** Elasticsearch\
**Created:** [March 26, 2015, 3:56pm UTC](https://discuss.elastic.co/t/removing-entry-from-the--suggest/22926 "2015-03-26T15:56:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay\_Chankov](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nikolay\_Chankov](https://discuss.elastic.co/u/Nikolay_Chankov)\
**Post date:** [March 26, 2015, 3:56pm UTC](https://discuss.elastic.co/t/removing-entry-from-the--suggest/22926/1 "2015-03-26T15:56:13Z")

</div>

Hi,

I am experiencing problems to remove entry from elastic search.

Here is the scenario

I have venues. Each venue could have state "open" or "closed" (in Mysql).  
When the state is "open" the entry should be in the elastic search, so I  
can search for it and display it on the site.  
But when it's marked as "closed" the venue should be removed from the ES  
index, so no one can search it.

The functionality for adding and removing the entry from the index is  
working seamless, and if I search for the venue name it doesn't display in  
the search results.

The problem is that I have an autocomplete where I am using \_suggest and  
when I start typing the venue name e.g. "churchills" the entry is in the  
autocomplete.

When I search in the index by venue id the entry is missing and it appear  
when I "open" it again, but suggest seems that it's not affected. I am  
quite sure that I am searching in the correct index, so it's not the case,  
that I am removing it from one index, but I am looking into another.

Are there any specifics how to remove entry from the \_suggest?

My instance is ES 1.1.1

Thank you in advance.

Nik

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0d69185c-dfe1-482b-a727-93aab57c4f94%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0d69185c-dfe1-482b-a727-93aab57c4f94%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/removing-entry-from-the--suggest/22926/2 "2017-07-06T00:23:38Z")

</div>


