Query DSL Issue

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

I don't follow, that's not a full query... where are you trying to run this, in the Console in Dev Tools or something?

I have added this in the JSON input field in visualize

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.