amorpro/selastic
Composer 安装命令:
composer require amorpro/selastic
包简介
Simple Elastic Search client
README 文档
README
Simple client for ElasticSearch. Helps to make simple search or aggregate queries.
Examples
$client = new \Selastic\Client('http://yourelasticnode.com'); // Not requared, by default will be used '_all' $client->useIndex('analytics'); // Simple string query $result = $client->search('user:12'); // Array query $result = $client->search(['user' => 12]); // Json query $result = $client->search('{ "user" : 12 }'); // Array aggregation query $result = $client->search([ 'query' => [...], 'aggs' => [...] ]); // Json aggregation query $result = $client->search('{"query" : {...}, "aggs" => {...}}');
统计信息
- 总下载量: 260
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-16