cawaphp / elasticsearch
Сáша ElasticSearch client
Installs: 174
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cawaphp/elasticsearch
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