Closed StarveTheEgo closed 2 years ago
Good catch ! You are right. It not really make sense to have an array of filter. I don't even think you can pass multiples queries. I think we need a BoolQuery to do that.
Also there is a naming issue here I think, filters is not a good name for this.
Closing as 3.0 fix all of these is issues
This is the deer again!
I think i've found possible pug. Or i am just missing the logic in this code:
src/QueryBuilder.php:112
This part makes me feel weird.
$this->filters
is an array, we iterate it, but rewriting$query['body']['query']
instead of appending (or whatever it should be).