diff --git a/docs/reference/migration/migrate_7_0/search.asciidoc b/docs/reference/migration/migrate_7_0/search.asciidoc index 2ca7c6787bf..61cbee85130 100644 --- a/docs/reference/migration/migrate_7_0/search.asciidoc +++ b/docs/reference/migration/migrate_7_0/search.asciidoc @@ -174,9 +174,10 @@ major version. ==== `hits.total` is now an object in the search response The total hits that match the search request is now returned as an object -with a `value` and a `relation`. `value indicates the number of hits that -match and `relation indicates whether the value is accurate (`eq`) or a lower bound +with a `value` and a `relation`. `value` indicates the number of hits that +match and `relation` indicates whether the value is accurate (`eq`) or a lower bound (`gte`): + ``` { "hits": { @@ -200,7 +201,7 @@ will be removed in the next major version (8.0). [float] ==== `hits.total` is omitted in the response if `track_total_hits` is disabled (false) -If `track_total_hits` is set to `false in the search request the search response +If `track_total_hits` is set to `false` in the search request the search response will set `hits.total` to null and the object will not be displayed in the rest layer. You can add `rest_total_hits_as_int=true` in the search request parameters -to get the old format back (`"total": -1`). \ No newline at end of file +to get the old format back (`"total": -1`).