GET rds_database-*/_search
{
"_source": ["failure_error_text"],
"query": {
"bool": {
"filter": [
{
"must":[
{
"term":{
"status.keyword":"F"
},
"range":
{
"@timestamp":
{
"gte":"now-1y/d",
"lte":"now/d"
}
}
}
]
}
]
}
}
}
"type": "x_content_parse_exception",
"reason": "[7:18] [bool] failed to parse field [filter]",
"caused_by": {
"type": "parsing_exception",
"reason": "[must] query malformed, no start_object after query name",
"line": 7,
"col": 18
}
I want to use must query in filter clause . I don't know where i am doing wrong.