# Completion suggester fuzziness ranks typos over exact matches

**URL:** <https://discuss.elastic.co/t/completion-suggester-fuzziness-ranks-typos-over-exact-matches/94717>\
**Category:** Elasticsearch\
**Created:** [July 27, 2017, 12:54am UTC](https://discuss.elastic.co/t/completion-suggester-fuzziness-ranks-typos-over-exact-matches/94717 "2017-07-27T00:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjhari/32/17838_2.png) [@manjhari](https://discuss.elastic.co/u/manjhari)\
**Post date:** [July 27, 2017, 12:54am UTC](https://discuss.elastic.co/t/completion-suggester-fuzziness-ranks-typos-over-exact-matches/94717/1 "2017-07-27T00:54:44Z")

</div>

Hi,  
I am using the completion suggester for predictive search with fuzziness enabled and am finding that the ranking is favouring typos over exact matches. I.e. in Kiban I use this  
GET /index/typeahead/\_search  
{  
"\_source": ["suggest"],  
"size": 10,  
"suggest":  
{  
"suggestions": {  
"prefix": "meat ",  
"completion": {  
"field": "suggest",  
"size": 10,  
"fuzzy": {  
"min\_length": 2,  
"prefix\_length": 1,  
"fuzziness": "AUTO"  
}  
}  
}  
}  
}

and get back results like meadow etc.  
while removing fuzziness completeley like this:  
GET /index/typeahead/\_search  
{  
"\_source": ["suggest"],  
"size": 7,  
"suggest":  
{  
"suggestions" :  
{  
"prefix" : "meat ",  
"completion" :  
{  
"field" : "suggest"  
}  
}  
}  
}

returns results with the word meat in them.

some help to get word matches to be ranked higher than typos would be appreaciated.

---

<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:** [August 24, 2017, 12:55am UTC](https://discuss.elastic.co/t/completion-suggester-fuzziness-ranks-typos-over-exact-matches/94717/2 "2017-08-24T00:55:20Z")

</div>

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