# Analyzers on FuzzyQuery

**URL:** <https://discuss.elastic.co/t/analyzers-on-fuzzyquery/14587>\
**Category:** Elasticsearch\
**Created:** [November 25, 2013, 11:10pm UTC](https://discuss.elastic.co/t/analyzers-on-fuzzyquery/14587 "2013-11-25T23:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian/32/1712_2.png) [@Andrew\_Cholakian](https://discuss.elastic.co/u/Andrew_Cholakian)\
**Post date:** [November 25, 2013, 11:10pm UTC](https://discuss.elastic.co/t/analyzers-on-fuzzyquery/14587/1 "2013-11-25T23:10:31Z")

</div>

It would appear the fuzzy queries do not run the query through analysis  
first, but that the fuzzy\_like\_this and fuzzy\_like\_this\_field queries do.  
Is there any reason why this is the case? I can think of many cases where  
analyzing a fuzzy query would be desired.

As an example if I have a field "name" using the "simple" analyzer, and I  
index the word "Vacuum", then ideally the query text "Vacuummm" should be  
analyzed down to "vacuummm", giving it an edit distance of 2, rather than  
an edit distance of 3, not running it through the lower-casing analyzer  
would give.

--  
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:** ![Andrew\_Cholakian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian/32/1712_2.png) [@Andrew\_Cholakian](https://discuss.elastic.co/u/Andrew_Cholakian)\
**Post date:** [November 26, 2013, 7:08pm UTC](https://discuss.elastic.co/t/analyzers-on-fuzzyquery/14587/2 "2013-11-26T19:08:10Z")

</div>

It would appear that the best way to do this is to specify the 'fuzziness'  
parameter on a match query. The fuzzy type seems much less useful.

On Monday, November 25, 2013 3:10:31 PM UTC-8, Andrew Cholakian wrote:

> It would appear the fuzzy queries do not run the query through analysis  
> first, but that the fuzzy\_like\_this and fuzzy\_like\_this\_field queries do.  
> Is there any reason why this is the case? I can think of many cases where  
> analyzing a fuzzy query would be desired.
> 
> As an example if I have a field "name" using the "simple" analyzer, and I  
> index the word "Vacuum", then ideally the query text "Vacuummm" should be  
> analyzed down to "vacuummm", giving it an edit distance of 2, rather than  
> an edit distance of 3, not running it through the lower-casing analyzer  
> would give.

--  
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/05e74977-2a1b-47ad-8906-a9ec0d1fbdb6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/05e74977-2a1b-47ad-8906-a9ec0d1fbdb6%40googlegroups.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:04am UTC](https://discuss.elastic.co/t/analyzers-on-fuzzyquery/14587/3 "2017-07-06T02:04:44Z")

</div>


