-
Notifications
You must be signed in to change notification settings - Fork 98
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
Make hitsCount
always the number of hits
(and not totalHits
value)
#701
Make hitsCount
always the number of hits
(and not totalHits
value)
#701
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello
This is more a maintenance change here, nothing that impacts the product because totalHits
is already supposed to always be the count of hits
Did you ask for this change because you noticed totalHits
was different from the number of hits
@johnnynotsolucky?
Hi @curquiza, I noticed that when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I did not understand immediately the problem,
it's indeed a bug here!
hitsCount
is the number of hits
, and totalHits
the total exhaustive number of hits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for this bug fix
bors merge
hitsCount
always the number of hits
(and not totalHits
value)
Pull Request
Related issue
Fixes #700
What does this PR do?
SearchResults::hitsCount
is consistent regardless of whetherestimatedTotalHits
is set.PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!