--- layout: default title: Minimum should match nav_order: 70 redirect_from: - /query-dsl/query-dsl/minimum-should-match/ --- # Minimum should match The `minimum_should_match` parameter can be used for full-text search and specifies the minimum number of terms a document must match to be returned in search results. The following example requires a document to match at least two out of three search terms in order to be returned as a search result: ```json GET /shakespeare/_search { "query": { "match": { "text_entry": { "query": "prince king star", "minimum_should_match": "2" } } } } ``` In this example, the query has three optional clauses that are combined with an `OR`, so the document must match either `prince`, `king`, or `star`. ## Valid values You can specify the `minimum_should_match` parameter as one of the following values. Value type | Example | Description :--- | :--- | :--- Non-negative integer | `2` | A document must match this number of optional clauses. Negative integer | `-1` | A document must match the total number of optional clauses minus this number. Non-negative percentage | `70%` | A document must match this percentage of the total number of optional clauses. The number of clauses to match is rounded down to the nearest integer. Negative percentage | `-30%` | A document can have this percentage of the total number of optional clauses that do not match. The number of clauses a document is allowed to not match is rounded down to the nearest integer. Combination | `2<75%` | Expression in the `n