Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

cawaphp/elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Сáша ElasticSearch


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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages