Hi Friends,
I have created a Pie Chart in Kibana with JSON Input and it generates the following request. Could somebody explain what this query is doing on the aggregation part?
I seem that have an aggregation 'line_id' and '_source.text_entry.length()'.
Thanks.
{
"size": 0,
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
},
"aggs": {
"2": {
"terms": {
"field": "line_id",
"size": 10,
"order": {
"_count": "desc"
},
"script": "_source.text_entry.length()",
"lang": "groovy"
}
}
}
}