# Weighted field search

**URL:** <https://discuss.elastic.co/t/weighted-field-search/46413>\
**Category:** Elasticsearch\
**Created:** [April 5, 2016, 2:59pm UTC](https://discuss.elastic.co/t/weighted-field-search/46413 "2016-04-05T14:59:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdragaj](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vdragaj](https://discuss.elastic.co/u/vdragaj)\
**Post date:** [April 5, 2016, 2:59pm UTC](https://discuss.elastic.co/t/weighted-field-search/46413/1 "2016-04-05T14:59:20Z")

</div>

I have been reading documentation to find a way to do the following search but have not had any success yet. Trying to see if anyone here has suggestion for me to look in to..

I have objects with a certain number of key value pairs, my search needs to consider 3 fields but there is a weight assignment and specific matching algorithm to be use per field.  
Say for example field1 should be matched with JaroWrinkler and weight on this field is 25%, Field2 DoubleMetaPhone and 35% weight and field 3 exact match and weight 40%. Now the query should use these weights and return the objects that have a combined matching score of 90% or higher.

And for JaroWrinkler field can we set a percentage match score, like for this field1 use JaroWrinkler and consider it a match if the JaroWrinkler similarity score is 80% or above.

Is this possible?

---

<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 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/weighted-field-search/46413/2 "2017-07-05T23:02:15Z")

</div>


