using a "now" in my range query as shown below
"range":{ "metadata_fields.time_start":{ "lte":"now", "gt":"now-7d" } } results in an error as shown below
{ "error" : { "root_cause" : [ { "type" : "parse_exception", "reason" : "could not read the current timestamp" } ], "type" : "search_phase_execution_exception", "reason" : "all shards failed", "phase" : "query", "grouped" : true, "failed_shards" : [ { "shard" : 0, "index" : "memsnippet_idx_1.1", "node" : "XDHi_2BbSQGb33IHDasxfA", "reason" : { "type" : "parse_exception", "reason" : "could not read the current timestamp", "caused_by" : { "type" : "illegal_argument_exception", "reason" : "features that prevent cachability are disabled on this context" } } } ] }, "status" : 400 } I upgraded to 7.11 today, my index.requests.cache.enable is true. Not sure why ES cannot read the current date?
https://stackoverflow.com/questions/66467133/using-now-in-elasticsearch-results-in-could-not-read-the-current-timestamp-e March 04, 2021 at 09:05AM
没有评论:
发表评论