1.安装Yii2-elasticSearch扩展(通过composer)
composer require --prefer-dist yiisoft/yii2-elasticsearch:"2.1.x-dev"
下载log:
[root@iZ942k2d5ezZ fecbvc]# composer require --prefer-dist yiisoft/yii2-elasticsearch:"2.1.x-dev"
Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing yiisoft/yii2-elasticsearch (2.1.x-dev c9ef932): Downloading (100%)
Package codeception/base is abandoned, you should avoid using it. No replacement was suggested.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Writing lock file
Generating autoload files
安装成功后,可以在vendor/yiisoft/看到文件夹 yii2-elasticsearch
2.安装elasticSearch-6版本,详细参看文档:http://www.fecmall.com/topic/672
中文分词:https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.1.3/elasticsearch-analysis-ik-6.1.3.zip
3.安装fecmall扩展