cawaphp / elasticsearch
此包已被弃用,不再维护。没有建议的替代包。
Sáша ElasticSearch 客户端
dev-master
2018-02-14 20:37 UTC
Requires
- php: ~7.0
- cawaphp/cawa: dev-master
- elasticsearch/elasticsearch: ~5.2
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is not auto-updated.
Last update: 2023-12-23 15:16:28 UTC
README
警告
请注意,此包仍在积极开发中。可能会有一些破坏性更改。感谢您的理解。
功能
- 简单地覆盖官方 ElasticSearch 客户端以启用配置文件
- 简单的 QueryBuilder
- 添加配置变量
type
&index
以强制全局索引 - 浏览结果时,您可以使用 JMESPath
基本用法
$search->add("aggregations/city", new QueryBuilder([ "terms" => [ "field" => "city", "size" => 0, ], ])); $search->add("aggregations/article/children/type", "article"); $search->add("query/bool/must[]", [ "terms" => [ "city" => ['london', 'paris'], ], ]);
许可
Cawa 使用 GPL v3 许可证进行许可 - 请参阅 LICENSE
文件以获取详细信息