Description Usage Arguments Value See Also Examples
Define Elasticsearch aggregation.
1 | aggs(json)
|
json |
JSON object describing the aggregation that needs to be executed. |
An elastic_aggs
object.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html
1 2 3 4 | avg_sepal_width_per_cat <- aggs('{"avg_sepal_width_per_cat": {
"terms": {"field": "species"},
"aggs": {"avg_sepal_width": {"avg": {"field": "sepal_width"}}}}
}')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.