diff --git a/docs/reference/query-dsl.asciidoc b/docs/reference/query-dsl.asciidoc index b4a82afdc28..1eb6fbddd1e 100644 --- a/docs/reference/query-dsl.asciidoc +++ b/docs/reference/query-dsl.asciidoc @@ -20,7 +20,7 @@ Compound query clauses:: Compound query clauses wrap other leaf *or* compound queries and are used to combine multiple queries in a logical fashion (such as the <> or <> query), -or to alter their behaviour (such as the <> or +or to alter their behaviour (such as the <> query). Query clauses behave differently depending on whether they are used in diff --git a/docs/reference/query-dsl/compound-queries.asciidoc b/docs/reference/query-dsl/compound-queries.asciidoc index c6a1f0f2c3a..07624f02ab7 100644 --- a/docs/reference/query-dsl/compound-queries.asciidoc +++ b/docs/reference/query-dsl/compound-queries.asciidoc @@ -48,5 +48,3 @@ include::dis-max-query.asciidoc[] include::function-score-query.asciidoc[] include::boosting-query.asciidoc[] include::indices-query.asciidoc[] -include::not-query.asciidoc[] - diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index 922216aeb93..e8b01acfd96 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -80,9 +80,7 @@ in ``query context'' and as a filter in ``filter context'' (see <>). [role="exclude",id="query-dsl-not-filter"] === Not Filter -The `not` filter has been replaced by the <>. It behaves -as a query in ``query context'' and as a filter in ``filter context'' (see -<>). +The `not` query has been replaced by using a `mustNot` clause in a Boolean query. [role="exclude",id="query-dsl-bool-filter"] === Bool Filter @@ -443,3 +441,8 @@ parameter of search requests. The `limit` filter is replaced in favour of the <> parameter of search requests. + +[role="exclude",id="query-dsl-not-query"] +=== Not query + +The `not` query has been replaced by using a `mustNot` clause in a Boolean query.