Skip to content

Commit

Permalink
change track_total_hits on async_search.submit to union (#57329)
Browse files Browse the repository at this point in the history
Relates: #51846

This commit updates the async_search.submit.json REST API
spec to make track_total_hits a union of boolean and long,
to reflect the possible values that can be passed.
  • Loading branch information
russcam authored Jun 2, 2020
1 parent f77005a commit 2b4635a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,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 2b4635a

Please sign in to comment.