# How \`minimium\_should\_match\` parameter affects different types of search

**URL:** <https://forum.opensearch.org/t/how-minimium-should-match-parameter-affects-different-types-of-search/10144>\
**Category:** OpenSearch\
**Created:** [June 30, 2022, 9:30pm UTC](https://forum.opensearch.org/t/how-minimium-should-match-parameter-affects-different-types-of-search/10144 "2022-06-30T21:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuryf-bq](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@yuryf-bq](https://forum.opensearch.org/u/yuryf-bq)\
**Post date:** [June 30, 2022, 9:30pm UTC](https://forum.opensearch.org/t/how-minimium-should-match-parameter-affects-different-types-of-search/10144/1 "2022-06-30T21:30:37Z")

</div>

I see that different types of queries accept different formats of `minimium_should_match` parameters.  
[Common terms query](https://opensearch.org/docs/latest/opensearch/query-dsl/full-text/#common-terms) accepts MSM as json object, while [multi\_match query](https://opensearch.org/docs/latest/opensearch/query-dsl/full-text/#multi-match) accepts an integer only.  
What describes this difference?  
I see common terms query is marked as obsolete, but it is a bit more flexible in that case.

---

<div class="post-metadata">

**Author:** ![radu.gheorghe](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/radu.gheorghe/32/3516_2.png) [@radu.gheorghe](https://forum.opensearch.org/u/radu.gheorghe)\
**Post date:** [July 1, 2022, 3:20pm UTC](https://forum.opensearch.org/t/how-minimium-should-match-parameter-affects-different-types-of-search/10144/2 "2022-07-01T15:20:04Z")

</div>

Hi,

For the Common Terms query you have two values because one will apply for the frequent terms, one for the not-so-frequent ones.

But in general, you can put an integer in there or a string value. You can refer to the Elasticsearch documentation for details: [minimum\_should\_match parameter | Elasticsearch Guide [7.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/query-dsl-minimum-should-match.html)

This behavior has been the same for a while and I doubt it will change soon, so the versions don’t matter as much.
