failed to get data back using "@timestamp" as epoch_second in range query #88048
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Elasticsearch Version
8.2.0
Installed Plugins
No response
Java Version
openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
OS Version
Linux test 5.14.0+ #4 SMP PREEMPT Tue Sep 7 12:04:46 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
Within my data, there is a field named "@timestamp" whose value is epoch second (in index mapping, I model it as "epoch_second").
However, I failed to get my data using range query. After some investigation, I found that this is casued by the following logic in DateFieldMapper.java . Namely, from/to in range query would always be parsed as epoch millis (they are integers). I think this is not correct.
Steps to Reproduce
I think my query is clear enough.
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: