我最近在另一台机器上安装了我一直在开发的应用程序。这台机器现在正在使用一个更新版本的宅基地,这就迫使我使用一个更新版本的Meilisearch。
因此,如果我输入这个命令,例如:
vagrant@homestead:~/projects/project$ meilisearch我知道这个错误:
Error: Expected Meilisearch engine version: 0.20.0, current engine version: 0.28.1. To update Meilisearch use a dump.如果我尝试在我的应用程序中使用Meilisearch,我会得到以下错误:
Json deserialize error: unknown field `filters`, expected one of `q`, `offset`, `limit`, `attributesToRetrieve`, `attributesToCrop`, `cropLength`, `attributesToHighlight`, `showMatchesPosition`, `filter`, `sort`, `facets`, `highlightPreTag`, `highlightPostTag`, `cropMarker` at line 1 column 29 我怎样才能解决这个问题?
发布于 2022-10-24 22:25:24
文档中没有设置版本的解释,所以您必须使用最新版本。第一个错误表示您试图使用旧数据库(data.ms)启动Meilisearch。在1.0版之前,Meilisearch版本之间是不兼容的。因此,要解决错误,请删除旧的/现有数据库文件夹(data.ms)并重新启动实例。第二个错误表示您的代码或SDK与Meilisearch不兼容。作为一种最佳实践,建议在changelogs中检查Meilisearch和您的应用程序的版本兼容性。您需要更新代码以修复错误。
https://stackoverflow.com/questions/74158617
复制相似问题