Skip to content

Commit

Permalink
Update track_total_hits to union type (#51846)
Browse files Browse the repository at this point in the history
* Update track_total_hits to union type

This commit updates track_total_hits parameter type to a union
of boolean and number, to reflect the possible values that can
be passed.

* Update rest-api-spec/src/main/resources/rest-api-spec/api/search.json

Co-Authored-By: Karel Minarik <[email protected]>

* Update rest-api-spec/src/main/resources/rest-api-spec/api/search.json

Co-authored-by: Karel Minarik <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored May 27, 2020
1 parent fc521ef commit 38a17f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@
"description":"Whether to calculate and return scores even if they are not used for sorting"
},
"track_total_hits":{
"type":"boolean",
"description":"Indicate if the number of documents that match the query should be tracked"
"type":"boolean|long",
"description":"Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number."
},
"allow_partial_search_results":{
"type":"boolean",
Expand Down

0 comments on commit 38a17f2

Please sign in to comment.