diff --git a/docs/reference/query-dsl/bool-query.asciidoc b/docs/reference/query-dsl/bool-query.asciidoc index f8e08aaada9..dc986bf14d9 100644 --- a/docs/reference/query-dsl/bool-query.asciidoc +++ b/docs/reference/query-dsl/bool-query.asciidoc @@ -141,3 +141,10 @@ GET _search } --------------------------------- // AUTOSENSE + +==== Using named queries to see which clauses matched + +If you need to know which of the clauses in the bool query matched the documents +returned from the query, you can use +<> to assign a name to +each clause.