# How to use maximum bm25 score among original term and its synonyms?

**URL:** <https://discuss.elastic.co/t/how-to-use-maximum-bm25-score-among-original-term-and-its-synonyms/305986>\
**Category:** Elasticsearch\
**Created:** [May 31, 2022, 2:08am UTC](https://discuss.elastic.co/t/how-to-use-maximum-bm25-score-among-original-term-and-its-synonyms/305986 "2022-05-31T02:08:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junhyeok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junhyeok/32/101700_2.png) [@Junhyeok](https://discuss.elastic.co/u/Junhyeok)\
**Post date:** [May 31, 2022, 2:08am UTC](https://discuss.elastic.co/t/how-to-use-maximum-bm25-score-among-original-term-and-its-synonyms/305986/1 "2022-05-31T02:08:31Z")

</div>

Hi, I am a newbie in Elasticsearch.

I'm using synonym filters in analyzer.

e.g. air conditioner -\> "air", "conditioner", "circulator" (synonym)

When i use match query, it will calculate bm25 score for every matching terms including synonyms.

However, i want to use only maximum score among matching terms.

Is there any way by using query DSL?

Thanks 🙂

---

<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:** [June 28, 2022, 2:09am UTC](https://discuss.elastic.co/t/how-to-use-maximum-bm25-score-among-original-term-and-its-synonyms/305986/2 "2022-06-28T02:09:15Z")

</div>

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