Skip to content

fix: display an accurate number of total hits for search#1716

Merged
netomi merged 3 commits intomasterfrom
get-elasticsearch-total-hits
Mar 24, 2026
Merged

fix: display an accurate number of total hits for search#1716
netomi merged 3 commits intomasterfrom
get-elasticsearch-total-hits

Conversation

@netomi
Copy link
Copy Markdown
Contributor

@netomi netomi commented Mar 24, 2026

This fixes #1629.

When doing an elastic search query, one needs to explicitly enable trackTotalHits to get an accurate number of total hits for a search otherwise it maxes out to the max_result_window setting.

@netomi netomi merged commit d3a31e6 into master Mar 24, 2026
8 checks passed
@netomi netomi deleted the get-elasticsearch-total-hits branch March 24, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search results top at 10.000

1 participant