# Similarity comparision based only on boost parameter

**URL:** <https://discuss.elastic.co/t/similarity-comparision-based-only-on-boost-parameter/21466>\
**Category:** Elasticsearch\
**Created:** [January 3, 2015, 10:43pm UTC](https://discuss.elastic.co/t/similarity-comparision-based-only-on-boost-parameter/21466 "2015-01-03T22:43:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mimol091](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mimol091](https://discuss.elastic.co/u/mimol091)\
**Post date:** [January 3, 2015, 10:43pm UTC](https://discuss.elastic.co/t/similarity-comparision-based-only-on-boost-parameter/21466/1 "2015-01-03T22:43:22Z")

</div>

Hello. I need to implement some kind of similarity comparison.  
For example, lest assume that I have book object (with Author -boost 2, and  
number of pages - 1). How can I force that other book with this same data  
(author + number of pages\_ will return score as a 2+1 ?  
I really dont want to use any complex mathematical function. Just add a  
boost params, when its match.  
In other word max result should be sum of boost of individual fields

My query"  
{  
"query": {  
"filtered": {  
"query": {  
"bool": {  
"should": [  
{  
"match": {  
"season": {  
"query": 1,  
"boost": 5  
}  
}  
},  
{  
"match": {  
"appliance": {  
"query": 1,  
"boost": 2  
}  
}  
}  
]  
}  
},  
"filter": []  
}  
},  
"min\_score": 0  
}  
Max score is 1.2998674 But it should be 7

--  
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/ea61f261-643b-40a6-8ea5-b3025276a9fa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ea61f261-643b-40a6-8ea5-b3025276a9fa%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, 12:41am UTC](https://discuss.elastic.co/t/similarity-comparision-based-only-on-boost-parameter/21466/2 "2017-07-06T00:41:01Z")

</div>


