meilisearch / meilisearch-php

PHP wrapper for the Meilisearch API

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

finitePagination option not working

camaech opened this issue · comments

Description
When using finitePagination = true I get a json serialization error.

const searchClient = instantMeiliSearch(searchUrl, searchApiKey, {
    placeholderSearch: false,
    finitePagination: true,
});

Screenshots or Logs
Meilisearch\Exceptions\ApiException: Json deserialize error: invalid type: null, expected usize at line 1 column 34 in file /var/www/html/vendor/meilisearch/meilisearch-php/src/Http/Client.php on line 199

Environment (please complete the following information):

  • OS: [Linux]
  • Meilisearch version: v.0.28.1
  • meilisearch-php version: v1.0.0

Hey @camaech. What is your version of instant-meilisearch ? What is the error in your browser's logs? Is your searchUrl the URL to your meilisearch instance or to your back-end?

I have a hard time understanding how these two are related.

Your version of Meilisearch is v0.28.1, there might be a lot of compatibility issues going on here as we are currently on Meilisearch v1.1.0.

Either way, @brunoocasali is currently on holiday and he might know better how to solve your issue :)

Yeah I was. Upgraded to 1.0.2 and it appears to be working now.

Nice ✨ I'll let @brunoocasali close this issue to be sure there is no additional information to provide :)

Thanks @bidoubiwa. I think there is nothing more to be done here!