I am unable to figure out what is wrong with below query.
GET website/_search
{
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"gte": "now-1d/d",
"lt": "now/d"
}
},
"match": {
"aspnet-request-url.keyword": "abc.com/Default.aspx"
}
}
]
}
}
}
Both range and match are working fine independently.
As per documentation, it says when merging more than one query we should use either must , filter, must-not under bool query.
Still it is giving [range] malformed query, expected [END_OBJECT] but found [FIELD_NAME].
Any help is appreciated.