Download the PHP package gskema/elasticsearch-query-dsl-php without Composer
On this page you can find all versions of the php package gskema/elasticsearch-query-dsl-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gskema/elasticsearch-query-dsl-php
More information about gskema/elasticsearch-query-dsl-php
Files in gskema/elasticsearch-query-dsl-php
Package elasticsearch-query-dsl-php
Short Description Feature complete, object oriented, composable, extendable Elasticsearch query DSL builder for PHP.
License MIT
Homepage https://github.com/gskema/elasticsearch-query-dsl-php
Informations about the package elasticsearch-query-dsl-php
Elasticsearch Query DSL
Feature complete, object oriented, composable, extendable Elasticsearch query DSL builder for PHP.
Features
- Dependency free
- Can be used with any PHP Elasticsearch client
- Fully interfaced, ready for custom classes and
- Explicit class and property naming, fully matches produced JSON and Elasticsearch docs
- All configuration options are listed inside classes, links to documentation
- Classes can be easily composed, extended
- Usage of setters/getters so that everything can be inlined and chained.
- Fully working
::__clone()
methods - Extendable code: no usage of
private
,final
orreadonly
- Basic objects created on
__construct
, no unnecessary body build logic untiljsonSerialize()
is called
Versions
Most of the classes should be compatible with any Elasticsearch versions.
If something is not compatible or not supported, Raw*
or custom classes can be used.
Package version | Elasticsearch version |
---|---|
>=6.0.0 <7.0.0 | >=6.0.0 <7.0.0 |
>=5.0.0 <6.0.0 | >=5.0.0 <6.0.0 |
Because major version number follows Elasticsearch major version number, second number is reserved for breaking changes.
Install
Usage
All classes match naming in official Elasticsearch documentation. Each class has a list of possible configuration options listed above class using attributes:
Similarly, SearchRequest
class also has possible URL parameters listed:
Matcher?
Request object that is received by Elasticsearch /_search/
has many properties and sub-properties
like query
, filter
, post_filter
, etc.
To avoid convoluted expressions like
keyword matcher
was explicitly chosen.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.