使用Laravel Scout弹性搜索Laravel

时间:2018-06-15 07:28:16

标签: laravel

我正在使用Laravel Scout为Laravel创建弹性搜索演示。我使用此网站进行了参考= https://medium.com/@samogorm/basic-search-functionality-with-elasticsearch-laravel-scout-6ac182c99cbf。我安装了  ElasticSearch,Java版本加工并按照上面的链接步骤,但是当我运行命令

-php artisan scout:import “App\Account” 

我收到了错误

  

Symfony \ Component \ Debug \ Exception \ FatalThrowableError:Class   '应用程序\帐户'找不到

     

在   /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/scout/src/Console/ImportCommand.php:35       31 |公共函数句柄(Dispatcher $ events)       32 | {       33 | $ class = $ this->参数(' model');       34 |       35 | $ model = new $ class;       36 |       37 | $ events-> listen(ModelsImported :: class,function($ event)use($ class){       38 | $ key = $ event-> models-> last() - > getScoutKey();       39 |

     

异常追踪:

     

1
  Laravel \侦察兵\控制台\ ImportCommand ::手柄(对象(照亮\活动\分派器))         /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29

     

2 call_user_func_array()         /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29

     

请使用参数-v查看更多详细信息。

我不是经验丰富的人,你能否告诉我有什么问题

0 个答案:

没有答案
相关问题