# Match query with minimum field should match

**URL:** <https://discuss.elastic.co/t/match-query-with-minimum-field-should-match/258403>\
**Category:** Elasticsearch\
**Created:** [December 11, 2020, 11:19am UTC](https://discuss.elastic.co/t/match-query-with-minimum-field-should-match/258403 "2020-12-11T11:19:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Kutyla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomasz_kutyla/32/78397_2.png) [@Tomasz\_Kutyla](https://discuss.elastic.co/u/Tomasz_Kutyla)\
**Post date:** [December 11, 2020, 11:19am UTC](https://discuss.elastic.co/t/match-query-with-minimum-field-should-match/258403/1 "2020-12-11T11:19:47Z")

</div>

Hi,

I have an question in regards of match query. Lets imagine we have an index with below data:

```
POST /_bulk
{"index": {"_index": "composers"}}
{"name": "Johann Sebastian Bach", "phone": "543987111"}
{"index": {"_index": "composers"}}
{"name": "Johann Christoph Bach", "phone": "111111111"}
{"index": {"_index": "composers"}}
{"name": "Johann Ambrosius Bach", "phone": "32423423"}

```

and we also have full text search entry with value:

`johann sebastian bach 543987111`

What I would like to achieve is to write query which will additionally boost name field only in case when all tokens from name field exist and match in query.

Thank you in advance  
Tomek

---

<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:** [January 8, 2021, 11:19am UTC](https://discuss.elastic.co/t/match-query-with-minimum-field-should-match/258403/2 "2021-01-08T11:19:48Z")

</div>

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