-
Notifications
You must be signed in to change notification settings - Fork 331
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
Pagination with query callback broke pagination in last meilisearch version #535
Comments
Did you restart Meilisearch after upgrading? |
I'm using Homestead, i do This happening in my team and in production vps |
@eliasjtg can you post the result of |
A workaround was remove all ->query() callbacks and do the query in the model overriding |
Working on it |
The output:
|
if i do
|
* Add failing test * Fix issue #535 * formatting Co-authored-by: Taylor Otwell <taylorotwell@gmail.com>
This'll be in next week's release. Thanks @mmachatschek |
Description:
After upgrade meilisearch to 0.22 and upgrade meilisearch-php 0.19.1 the pagination is broken when queryCallback is provided.
Builder.php:398 return $totalCount that is always 0
When ->query() callback don't passed, pagination work perfectly
Steps To Reproduce:
Using query() reproduce the bug
The text was updated successfully, but these errors were encountered: