Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the search::count() is counting all results #1746

Merged

Conversation

thePanz
Copy link
Collaborator

@thePanz thePanz commented Jan 15, 2020

The current Search::count() implementation is not taking into consideration the track-total-hits setting in ES, fhus only returning the count for the first 10000 results.

This PR makes sure that the track-total-hits is set to true, allowing all results to be counted.

@thePanz thePanz force-pushed the search-count-should-count-all-results branch from 59dc7e6 to a792b3f Compare January 15, 2020 15:08
@thePanz thePanz requested a review from ruflin January 15, 2020 15:08
@thePanz thePanz force-pushed the search-count-should-count-all-results branch from a792b3f to c2ba423 Compare January 15, 2020 15:09
@thePanz thePanz force-pushed the search-count-should-count-all-results branch from c2ba423 to bb52f3f Compare January 15, 2020 15:21
@thePanz thePanz requested a review from p365labs January 15, 2020 20:56
@thePanz thePanz merged commit 54d8cb2 into ruflin:master Jan 16, 2020
@thePanz thePanz deleted the search-count-should-count-all-results branch January 16, 2020 10:07
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.

2 participants