Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Fix getTotalCount() method #80

Merged
merged 1 commit into from
Jan 27, 2021
Merged

Fix getTotalCount() method #80

merged 1 commit into from
Jan 27, 2021

Conversation

curquiza
Copy link
Member

@curquiza curquiza commented Jan 27, 2021

Remove nbHits usage because this is not reliable information.

The Meili team is aware of this. Here are the different issues and comments about it to explain why it's confusing, and why we should not use it:

TLDR;
nbHits is not reliable for pagination because can be exhaustive or not, depending on the value of exhaustiveNbHits that MeiliSearch returns which is always false for the moment.

We are sorry for this. We all hope this confusion will be fixed asap in MeiliSearch.

⚠️ The linter error in the CI will be fixed with #82

@curquiza curquiza changed the title Remove nbHits usage Fix getTotalCount() method Jan 27, 2021
Copy link
Collaborator

@shokme shokme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok nice thanks

@curquiza
Copy link
Member Author

bors merge

@bors
Copy link
Contributor

bors bot commented Jan 27, 2021

@bors bors bot merged commit 74a5d02 into master Jan 27, 2021
@bors bors bot deleted the remove-nbHits branch January 27, 2021 11:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants