Skip to content

Commit

Permalink
Set track_total_hits to true
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Sep 5, 2023
1 parent f7ee2ee commit 886b116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Catmandu/Store/ElasticSearch/Bag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ sub search {
else {
$es_args{body}{from} = $start;
}
$es_args{body}{track_total_hits} = \1;
$res = $self->store->es->search(%es_args);
}

Expand Down

0 comments on commit 886b116

Please sign in to comment.