Elasticsearch Clients很全,官方收集的如下:
https://www.elastic.co/guide/en/elasticsearch/client/index.html
这里介绍几种:
【1】PHP Client
https://github.com/elastic/elasticsearch-php
1. 安装composer
# url -sS https://getcomposer.org/installer | php
2. 添加composer.json文件,文件内容如下:
{
"require": {
"elasticsearch/elasticsearch": "~2.0"
}
}
3. 安装composer.json依赖
# php composer.phar install --no-dev
【2】Net Client
https://github.com/elastic/elasticsearch-net
可以使用该源代码编译后,即可使用。
但有个别人编译好的,更方便使用:
https://www.nuget.org/packages/NEST/