Caused by: org.elasticsearch.common.ParsingException: [bool] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
here is my request way :
{
"bool": {
"must": [
{
"range": {
"timestamp": {
"gt": ${timestamp_from},
"lt": ${timestamp_to},
"include_lower": true,
"include_upper": false
}
}
}
]
},
"aggs": {
"max_timestamp": {
"max": {
"field": "timestamp"
}
}
}
}