elasticsearch-query-builder icon indicating copy to clipboard operation
elasticsearch-query-builder copied to clipboard

Add average aggregation

Open mahdi-masa opened this issue 1 year ago • 0 comments

consider the following elastic query

`"aggs" => [
                "read_ratio_avg" => [
                    "avg" => [
                        "field" => "read-ratio",
                    ],
                ],
            ],
            "query" => [
                "bool" => [
                    "must" => [
                        [
                            "range" => [
                                "read-ratio" => [
                                    "gt" => 0,
                                ],
                            ],
                        ],
                        [
                            "match" => [
                                "url" => $hash,
                            ],
                        ],
                    ],
                ],
            ],`

your library handle every section of this query but there is no average aggregation in your library

mahdi-masa avatar Jun 16 '24 12:06 mahdi-masa