Skip to content

Commit 013df32

Browse files
committed
display total search hits (above 10,000)
fixes #139
1 parent f8cc064 commit 013df32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/search_item_req.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def build_request
1717
start = @params["start"].blank? ? SETTINGS["start"] : @params["start"]
1818

1919
req = {
20+
"track_total_hits": true,
2021
"aggs" => {},
2122
"from" => start,
2223
"highlight" => {},

0 commit comments

Comments
 (0)