gpt4 book ai didi

laravel - Laravel Scout Elasticsearch -找不到索引

转载 作者:行者123 更新时间:2023-12-03 01:38:44 30 4
gpt4 key购买 nike

我在Elasticsearch面前遇到了一个奇怪的问题。
我正在研究Laravel项目,需要将 Elasticsearch 与其集成。
我正在将https://github.com/babenkoivan/scout-elasticsearch-driver和Laravel Scout一起使用。
最初,一切正常,我也可以搜索。当一切正常时,我想删除索引并重新创建所有索引。但是之后,当我运行播种机时,出现了“未找到索引异常”。然后为了测试它,我创建了索引和类型。例如:TestIndex /部门
之后,播种机运行良好,我没有得到“找不到索引异常”的信息。但是,它没有使用我创建的索引。它创建了一个新的索引,格式为“TestIndex_write / department”

有人可以解释我在做什么错吗?为什么会自动创建具有不同名称的新索引?

我正在使用ElasticSearch> 6.0

最佳答案

尽管过去2个月,请尝试更新索引配置器:

php artisan elastic:update-index App\MyIndexConfigurator

关于laravel - Laravel Scout Elasticsearch -找不到索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49907656/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com