easyswoole / elasticsearch
Installs: 13 596
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 1
Forks: 8
Open Issues: 3
Requires
- easyswoole/http-client: ^1.3
- easyswoole/spl: ^1.3
- easyswoole/swoole-ide-helper: ^1.3
Requires (Dev)
- easyswoole/phpunit: ^1.0
README
Elasticsearch client,对官方客户端的协程化移植
单元测试
php vendor/bin/co-phpunit tests
单元测试前请修改项目根目录下phpunit.php内的配置项
官方Docker
docker pull elasticsearch:7.10.1
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.10.1
参考文献
https://github.com/elastic/elasticsearch-php/blob/master/src/Elasticsearch/Client.php
https://github.com/elastic/elasticsearch-php/blob/master/src/Elasticsearch/ClientBuilder.php