# Jaro-Winkler Query

**URL:** <https://discuss.elastic.co/t/jaro-winkler-query/19282>\
**Category:** Elasticsearch\
**Created:** [August 14, 2014, 11:23am UTC](https://discuss.elastic.co/t/jaro-winkler-query/19282 "2014-08-14T11:23:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_C](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Adrian\_C](https://discuss.elastic.co/u/Adrian_C)\
**Post date:** [August 14, 2014, 11:23am UTC](https://discuss.elastic.co/t/jaro-winkler-query/19282/1 "2014-08-14T11:23:25Z")

</div>

Hi,

Is it possible to use jaro-winker rather than levenshtein distance for  
fuzzy queries? Any ideas how one could go about extending ES to enable  
this.

I have looked at using function score like below however this does not work  
for me seeing as I cannot combine this with another query that uses  
provided analyzers. For example I would like to combine a search using  
phonetic encoding & jaro-winker distance.

query: {  
"function\_score" : {  
"query" : {  
"match\_all" : { }  
},  
"script\_score" : {  
"script" : "daon-jaro-winkler",  
"lang" : "native",  
"params" : {  
"fullname\_untokenized" : {  
"query" : "some name"  
}  
}  
}  
}  
}

Thanks,  
Adrian

--  
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/bf73b9ac-1984-46d7-b8ff-c02b94653eeb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bf73b9ac-1984-46d7-b8ff-c02b94653eeb%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, 1:08am UTC](https://discuss.elastic.co/t/jaro-winkler-query/19282/2 "2017-07-06T01:08:37Z")

</div>


