Match query with minimum field should match


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

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