# AutoCorrect In Elastic Search

**URL:** <https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858>\
**Category:** Elasticsearch\
**Created:** [February 26, 2016, 2:11pm UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858 "2016-02-26T14:11:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajaram\_Surimenu](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@Rajaram\_Surimenu](https://discuss.elastic.co/u/Rajaram_Surimenu)\
**Post date:** [February 26, 2016, 2:11pm UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/1 "2016-02-26T14:11:42Z")

</div>

What is the best way to use Autocorrect (not autosuggest ) in elastic search ? can someone please suggest.

Thanks

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [February 26, 2016, 6:08pm UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/2 "2016-02-26T18:08:36Z")

</div>

You mean like run a suggest and decide to search on the suggestion automatically if the suggestion looks much much better than what the user typed? You can use \_suggest or \_search for that.

---

<div class="post-metadata">

**Author:** ![Rajaram\_Surimenu](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@Rajaram\_Surimenu](https://discuss.elastic.co/u/Rajaram_Surimenu)\
**Post date:** [February 27, 2016, 3:12am UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/3 "2016-02-27T03:12:43Z")

</div>

As per my understanding, suggestion will give relevant word with some fuzziness of characters. But if i misspelled some word , will it autocorrect and give corrected word ?

Some of the cases which we are looking for ( for example pizza hut is a correct word )

1. If i query : "pizza huu" it should return "pizza hut"
2. if i query : "pizzahut" it should return "pizza hut"

Can you please suggest some pointers on this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Tatireddy\_Reddy](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@Tatireddy\_Reddy](https://discuss.elastic.co/u/Tatireddy_Reddy)\
**Post date:** [February 22, 2017, 7:02pm UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/4 "2017-02-22T19:02:39Z")

</div>

I dont think suggester will return. The option i could see is synonym.🙂

---

<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, 5:28am UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/5 "2017-02-23T05:28:28Z")

</div>

I got the same problem with you, and I follow the web site solution, hope it works with yours too.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html)

---

<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 5, 2017, 10:02pm UTC](https://discuss.elastic.co/t/autocorrect-in-elastic-search/42858/6 "2017-07-05T22:02:58Z")

</div>


