easyswoole/elasticsearch

There is no license information available for the latest version (1.0.6) of this package.

1.0.6 2024-10-28 03:55 UTC

This package is auto-updated.

Last update: 2024-10-28 07:43:30 UTC


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