I want to build a query builder for ElasticSearch but struggling to find the best pattern(s) to design it properly.
here is what I want to achieve
$builder
->index($indexString)
->type($typeString)
->query(function($builder){
$builder->bool(function($builder){
$builder
->must($field, $value)
->must($field2, $value2);
});
});
Any idea where to start or similar examples to learn from?
Aucun commentaire:
Enregistrer un commentaire