We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-----------------问题一:--------------- http://chuantu.biz/t5/117/1498456179x2362433453.png http://i.niupic.com/images/2017/06/26/qlG8aT.png 防止图片链接挂掉 我上传了2份 麻烦demo作者看下
情况如图所示!我安装elasticsearch 和ik都是最新版本。。您的demo直接clone下来 .env配置这样写的 ELASTICSEARCH_INDEX=ikindex ELASTICSEARCH_HOST=192.168.10.10:9200 SCOUT_DRIVER=elasticsearch demo其他地方未修改
我执行的步骤 php artisan es:init php artisan posts:import 数据库里面有50条数据
php artisan scout:flush App\Post php artisan scout:import App\Post 然后搜索出来结果就是上面的图片显示的结果
附上elasticsearch head上显示的信息 http://chuantu.biz/t5/117/1498457233x2728329119.png http://chuantu.biz/t5/117/1498457277x2362433453.png
http://i.niupic.com/images/2017/06/26/RDuUiT.png http://i.niupic.com/images/2017/06/26/QrnopK.png
-----------------问题二:--------------- 我在,model\Post 增加
//得到该模型索引的名称 public function searchableAs() { return 'ikindex'; }
这里返回的内容跟.env ELASTICSEARCH_INDEX配置是一致的 我搜索关键字为 学生
但是搜索后结果为空 关于 “学生” 的搜索结果, 共 0 条
The text was updated successfully, but these errors were encountered:
抱歉才回复你。
Sorry, something went wrong.
No branches or pull requests
-----------------问题一:---------------
http://chuantu.biz/t5/117/1498456179x2362433453.png
http://i.niupic.com/images/2017/06/26/qlG8aT.png
防止图片链接挂掉 我上传了2份 麻烦demo作者看下
情况如图所示!我安装elasticsearch 和ik都是最新版本。。您的demo直接clone下来
.env配置这样写的
ELASTICSEARCH_INDEX=ikindex
ELASTICSEARCH_HOST=192.168.10.10:9200
SCOUT_DRIVER=elasticsearch
demo其他地方未修改
我执行的步骤
php artisan es:init
php artisan posts:import
数据库里面有50条数据
php artisan scout:flush App\Post
php artisan scout:import App\Post
然后搜索出来结果就是上面的图片显示的结果
附上elasticsearch head上显示的信息
http://chuantu.biz/t5/117/1498457233x2728329119.png
http://chuantu.biz/t5/117/1498457277x2362433453.png
http://i.niupic.com/images/2017/06/26/RDuUiT.png
http://i.niupic.com/images/2017/06/26/QrnopK.png
-----------------问题二:---------------
我在,model\Post 增加
//得到该模型索引的名称
public function searchableAs()
{
return 'ikindex';
}
这里返回的内容跟.env ELASTICSEARCH_INDEX配置是一致的
我搜索关键字为 学生
但是搜索后结果为空
关于 “学生” 的搜索结果, 共 0 条
The text was updated successfully, but these errors were encountered: