Hi! I trying to use global aggregation and getting a parse failure
Elasticsearch\Common\Exceptions\BadRequest400Exception
search_parse_exception: Expected [START_OBJECT] under [global], but got a [START_ARRAY] in [price_glob]
my aggs looks like this:
'aggs' => [
'status_glob' => [
'global' => [],
'aggs' => [
'avg_status' => ['avg' => ['field' => 'status']],
]
],
]
I am use php with elasticsearch-php-client v2.3.
Can anyone say me where i'm made mistake?