Skip to content

Commit

Permalink
display total search hits (above 10,000)
Browse files Browse the repository at this point in the history
fixes #139
  • Loading branch information
wkdewey committed May 15, 2023
1 parent ea886a5 commit c19ce32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/search_item_req.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def build_request
start = @params["start"].blank? ? SETTINGS["start"] : @params["start"]

req = {
"track_total_hits": true,
"aggs" => {},
"from" => start,
"highlight" => {},
Expand Down

0 comments on commit c19ce32

Please sign in to comment.