I am trying to run the dsl query:
{
"aggs": {
"group": {
"terms": {
"field": "databaseEvent.id"
},
"aggs": {
"group_docs": {
"top_hits": {
"size": 1,
"sort": [
{
"Time": {
"order": "desc"
}
}
]
}
}
}
}
}
}
But I am getting error:
Visualize: [illegal_argument_exception] [cardinality] unknown field [aggs], parser not found