Browse Source

Link to named queries docs from bool query page

The named queries feature only makes sense with bool queries, but was not cross-referenced from the bool query documentation page.
Simon Willison 9 years ago
parent
commit
fdac0c7c6c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      docs/reference/query-dsl/bool-query.asciidoc

+ 7 - 0
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
+<<search-request-named-queries-and-filters,named queries>> to assign a name to
+each clause.