GET index/_search { "query": { "range": { "@timestamp": { "gte": "now-1d/d", "lt": "now/d" } }, "query_string": { "query": "*" } } }
{ "error" : { "root_cause" : [ { "type" : "parsing_exception", "reason" : "[range] malformed query, expected [END_OBJECT] but found [FIELD_NAME]", "line" : 9, "col" : 5 } ], "type" : "parsing_exception", "reason" : "[range] malformed query, expected [END_OBJECT] but found [FIELD_NAME]", "line" : 9, "col" : 5 }, "status" : 400 }
I don't know how to write correctly when I write, and I don't know how to correct the mistakes. I don't see the document specifically indicating the scope of this keyword.
What am I missing? Please advise