# How to suggest values that don't being with a given input and support for fuzziness

**URL:** <https://discuss.elastic.co/t/how-to-suggest-values-that-dont-being-with-a-given-input-and-support-for-fuzziness/20406>\
**Category:** Elasticsearch\
**Created:** [October 23, 2014, 5:57pm UTC](https://discuss.elastic.co/t/how-to-suggest-values-that-dont-being-with-a-given-input-and-support-for-fuzziness/20406 "2014-10-23T17:57:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lalit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lalit/32/1161_2.png) [@Lalit](https://discuss.elastic.co/u/Lalit)\
**Post date:** [October 23, 2014, 5:57pm UTC](https://discuss.elastic.co/t/how-to-suggest-values-that-dont-being-with-a-given-input-and-support-for-fuzziness/20406/1 "2014-10-23T17:57:25Z")

</div>

Hi,

I am indexing documents that have a field called tags - which is an array  
of multi word strings. My goal is to take a user's input and return  
suggestions for tags which already exist that closely match the user's  
input. I started by changing the mapping of the field to allow for some  
custom fields for the tags property. The custom fields enable the  
completion suggester to work. This works well for returning tags that begin  
with the user's input. However I get no results that contain the user's  
input as part of a tag. This makes sense since the completion suggester is  
a prefix suggester, but I'm not sure what to look at next to achieve my  
goal. I tried just the term suggester, but that returns recommendations for  
every word the user may have entered instead of the entire tag. I'd also  
like to support some level of fuzziness so some input like boik may return  
a suggestion like book.

Do I need to create a new index just for this field?

I'm a bit new to elasticsearch and would appreciate some direction.

Thank you.

--  
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/12b37a3b-0705-458c-bf02-5bd4f31c57e9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/12b37a3b-0705-458c-bf02-5bd4f31c57e9%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:54am UTC](https://discuss.elastic.co/t/how-to-suggest-values-that-dont-being-with-a-given-input-and-support-for-fuzziness/20406/2 "2017-07-06T00:54:09Z")

</div>


