搭建完了之后,模板不存在

来源:9-8 关联模型并使用scout命令导入数据

慕码人3572504

2017-11-27

http://img.mukewang.com/szimg/5a1b787e0001dd5f11500576.jpg

执行php artisan es:init报错“ Client error: `DELETE http://127.0.0.1:9200/_template/tmp` resulted in a `404 Not Found` response:   {"error":{"root_cause":[{"type":"index_template_missing_exception","reason":"index_template [tmp] missing"}],"type":"ind (truncated...),,,这个是什么情况啊”

写回答

1回答

轩脉刃

2017-11-28

你先吧delete操作注释掉,执行一遍,再取消注释。这里的代码忘记考虑第一次没有模版的异常处理了。

0
0

Laravel快速开发简书

Laravel最新特性结合Mysql异步消息队列、ElasticSearch搜索引擎、Debugbar调试利器开发简书

1218 学习 · 613 问题

查看课程