What is "minimun_should_match" in ES?

Can Anyone tell me what exactly is this clause "minimun_should_match " and how it is used?

Given a number of optional query clauses that appear in the should array of a bool query it defines the minimum number of those clauses a document must match.

Practically speaking it acts like a quality control - given a number of "nice to have" type clauses e.g. names of all the bands you like, you can find people who have at least 3 of those in common with you.

1 Like

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