Skip to content

Commit

Permalink
change track_total_hits on async_search.submit to union
Browse files Browse the repository at this point in the history
Relates: elastic#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 committed May 29, 2020
1 parent b001bab commit d1e9126
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 d1e9126

Please sign in to comment.