# Problem with using fuzzy completion suggest

**URL:** <https://discuss.elastic.co/t/problem-with-using-fuzzy-completion-suggest/14480>\
**Category:** Elasticsearch\
**Created:** [November 20, 2013, 3:04am UTC](https://discuss.elastic.co/t/problem-with-using-fuzzy-completion-suggest/14480 "2013-11-20T03:04:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [November 20, 2013, 3:04am UTC](https://discuss.elastic.co/t/problem-with-using-fuzzy-completion-suggest/14480/1 "2013-11-20T03:04:53Z")

</div>

Hi all - I am trying to use completion suggest with fuzziness=2 and for  
some reason I am not able to get the text when the query string differs  
even slight from the original string.

Here is a snippet of my request string:

_"completionSuggestionFuzzyIdPrefix" : { "text" : "Jack Smmth",  
"completion" : { "field" : "fullNameSuggest", "fuzzy" :  
{ "edit\_distance" : 2 } }_

I have the value in completion suggest field as "Jack Smith" and hence I am  
hoping the above request to return me the fuzzy match 'Jack Smith'.  
Here is my mapping:

_"fullNameSuggest": { "type" :  
"completion", "index\_analyzer" :  
"simple", "search\_analyzer" : "simple",  
"payloads": true }_

Any clue what might be going wrong here?

-Amit.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [November 20, 2013, 3:11am UTC](https://discuss.elastic.co/t/problem-with-using-fuzzy-completion-suggest/14480/2 "2013-11-20T03:11:35Z")

</div>

please ignore this, I was doing something stupid. my apology!

-Amit.

On Tue, Nov 19, 2013 at 7:04 PM, Amit Soni [amitsoni29@gmail.com](mailto:amitsoni29@gmail.com) wrote:

> Hi all - I am trying to use completion suggest with fuzziness=2 and for  
> some reason I am not able to get the text when the query string differs  
> even slight from the original string.
> 
> Here is a snippet of my request string:
> 
> _"completionSuggestionFuzzyIdPrefix" : { "text" : "Jack Smmth",  
> "completion" : { "field" : "fullNameSuggest", "fuzzy" :  
> { "edit\_distance" : 2 } }_
> 
> I have the value in completion suggest field as "Jack Smith" and hence I  
> am hoping the above request to return me the fuzzy match 'Jack Smith'.  
> Here is my mapping:
> 
> _"fullNameSuggest": { "type" :  
> "completion", "index\_analyzer" :  
> "simple", "search\_analyzer" : "simple",  
> "payloads": true }_
> 
> Any clue what might be going wrong here?
> 
> -Amit.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:06am UTC](https://discuss.elastic.co/t/problem-with-using-fuzzy-completion-suggest/14480/3 "2017-07-06T02:06:07Z")

</div>


