-
Notifications
You must be signed in to change notification settings - Fork 53
Pagination with hits_per_page to limit per page but got error #183
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
Comments
Hi @mech I found what happened, I'll provide a fix soon! |
@mech I created a branch with the fix, I need to have my PR approved to release a new version. So while I wait for the approval, you have some options:
Thanks for using Meilisearch ❤️ |
Wow tks, hitsPerPage does work. I will use this temporarily. |
It will be released soon as 0.7.2! |
I am puzzle, when I do a search, it appear it is querying all 200 records no matter which page I am on. Doing SELECT * FROM "candidates" WHERE id IN ($1, $2, ...... $200) Is this normal? |
Yes, it is normal because Meilisearch does not provide a way to know the total hits yet. It is something we plan to improve in the future, in fact, we already have a prototype for this meilisearch/meilisearch#2635 feel free to give your thoughts there :) |
Tks for clarification, will play with the new prototype 👍 |
I am trying to limit the pagination using hits_per_page with Kaminari:
But was given this error:
Removing the
hits_per_page
and I got back the first 20 records of the first page.I even replace it with limit, but no luck:
Is there any special options we are not aware of? Or is pagination not working and need to wait for v0.29
The text was updated successfully, but these errors were encountered: