Hi,
I'm trying to create a visualization for the following query:
GET _search
{
"query": {
"query_string": {
"query": "distribution.extension.id:org.xwiki.* AND date.since:[1 TO *]"
}
},
"aggs": {
"activeinstalls_over_time" : {
"date_histogram" : {
"field" : "date.current",
"calendar_interval": "week"
},
"aggs" : {
"instanceId_count" : {
"cardinality" : {
"field" : "distribution.instanceId"
}
}
}
}
}
}
I've found the "Aggregation-based" visualization type but I can't figure out how to add a nested Cardinality aggregation (nor how to set a query string).
When I try to add a nested aggregation, I don't see a Cardinality sub-aggregation available.
Any idea what I can do? Do I have to learn how to write a custom visualization using Vega?
Thanks!