question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search no longer works after upgrading MeiliSearch

See original GitHub issue

Hello. I built the wagtail-meilisearch backend for the Wagtail CMS, and I’m trying to update it to use more recent versions of MeiliSearch, but since upgrading MeiliSearch and meilisearch-python I get an error when searching the index that I had previously built…

/usr/lib/python3.6/site-packages/meilisearch/_httprequests.py in __validate(request)
     49             return HttpRequests.__to_json(request)
     50         except requests.exceptions.HTTPError as err:
---> 51             raise MeiliSearchApiError(err, request)

MeiliSearchApiError: MeiliSearchApiError. Error code: search_error. Error message: impossible to search documents; heed error; error while decoding. Error documentation: https://docs.meilisearch.com/error/search_error

The link to the error documentation at the end there is a 404, I was able to find the relevant page on the docs but it didn’t help much. Should I kill and rebuild the index from scratch after upgrading?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
drcongocommented, Jul 30, 2020

Perfect, thanks. I actually ended up pushing a compatibility update as 0.11.0, but yeah, I take your point about how the different versions don’t necessarily mean compatibility alignment. When we all hit 1.x it would make more sense.

Thanks for all the great work on this library!

1reaction
curquizacommented, Jul 30, 2020

Not a problem, the database (data.ms) is indeed not compatible between 2 minors versions of MeiliSearch, it means you have to re-populate your MeiliSearch instance! Snapshotting and back-up are currently implemented to solve that 🙂

One small question though, I was thinking I might update my versioning on wagtail-meilisearch to track the version numbers of your package, which is fairly close to tracking the version numbers of MeiliSearch itself. Does that sound like a good idea to you?

Hum, at the beginning meilisearch-python did indeed follow the same minor version (0.X.Y where X is the minor) of MeiliSearch. But we realized this is not convenient because the breaking changes of MeiliSearch do not necessarily involve breaking changes for meilisearch-python, and the opposite. So we stop that. Now, our SDKs (like meilisearch-python) follow their own versioning, so tracking the meilisearch-python version does not mean tracking the MeiliSearch version as well… And I’m not sure I recommend your package following the meilisearch-python version for the same reason. MeiliSearch, and meilisearch-python, are not enough stable yet: we are doing a lot of changes every week. You should follow your own versioning and when MeiliSearch will be more stable, I mean using the major, we (and you) should reconsider this possibility 🙂 (Hope I understood well your question)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update to the latest Meilisearch version
Update to the latest Meilisearch version. Currently, Meilisearch databases can only be opened by the Meilisearch version you used to create them.
Read more >
Meilisearch shows irrelevant results after updating to v0.27
Describe the bug Since I updated meilisearch to version 0.27, the search results have been worse. In previous version (v0.25) of meilisearch ......
Read more >
Laravel Scout - Laravel - The PHP Framework For Web Artisans
When upgrading Scout on an application that utilizes MeiliSearch, ... Since a search index is not a relational database, more advanced "where" clauses...
Read more >
Meilisearch API documentation - Bump.sh
Search for documents matching a specific query in the given index. This route should only be used when no API key is required....
Read more >
MeiliSearch: A definitive guide - LogRocket Blog
Installing MeiliSearch ; MeiliSearch project setup; Creating the blogs index; Uploading a dataset in MeiliSearch; Searching for documents in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found