I am using terms aggregation in elasticsearch something like
"aggs": {
"url": {
"terms": {
"field": "request"
}
}
}
My request field have values like "GET /" or "GET /test.html" . When I execute above query the output has buckets with
"buckets": [
{
"key": "get",
"doc_count": 436830
},
{
"key": "test.html",
"doc_count": 2
}
]
I can see that it broke request field into multiple tokens and made it buckets. How to use aggregation with exact field ? I expect buckets to be "GET /" and "GET /test.html" .Please help