Skip to content

Query Builder #79

Description

@hellopablo

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.

Metadata

Metadata

Assignees

Labels

effort: highIssues which are considered a hard task

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions