cawaphp / elasticsearch
This package is abandoned and no longer maintained.
No replacement package was suggested.
Сáша ElasticSearch client
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
Warning
Be aware that this package is still in heavy developpement. Some breaking change will occure. Thank's for your comprehension.
Features
- Simple override of official ElasticSearch client in order to have profiling enable
- Simple QueryBuilder
- Add a configuration variable
type
&index
to force index globally - For browsing result, you can use JMESPath
Basic Usage
$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'], ], ]);
License
Cawa is licensed under the GPL v3 License - see the LICENSE
file for details