我不是指过滤器,我指的是设置:https://docs.meilisearch.com/reference/api/settings.html
因此,假设我想要更改特定模型(甚至所有模型)的默认Meilisearch 'stopword‘设置。
$client->index('movies')->updateStopWords(['the', 'of', 'to']);我怎么能这样做呢?
发布于 2021-07-29 20:37:47
Scout使用Meilisearch客户端创建一个单例。这意味着您可以从laravel容器中的任何位置访问该实例,如下所示:
$client = app(\MeiliSearch\Client::class);
$client->index('movies')->updateStopWords(['the', 'of', 'to']);https://stackoverflow.com/questions/68146095
复制相似问题