Introduce an abstraction which allows ES queries to be built in an object orientated way, something like:
use Nails\ElasticSearch\QueryBuilder as ES;
$oQuery = new ES\Query;
$oQuery
->index('articles')
->body(
(new ES\Bool())
->must(...)
->mustNot(...)
)
);
Anything to make uery building easier to udnerstand/follow, even if it is just for simple queries.
Introduce an abstraction which allows ES queries to be built in an object orientated way, something like:
Anything to make uery building easier to udnerstand/follow, even if it is just for simple queries.