range filter on date_range datatype should use the format defined in the mapping #29282
Labels
>bug
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
Tested on 6.2.3:
This is a Range query on a date field:
This works well.
This is a Range query on a date_range field:
This is failing with:
We can see that the format defined in the mapping is not used here. It should use
yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis
but it usesstrict_date_optional_time||epoch_millis
.If we manually force the
format
to be the same as themapping
, then it works:I suggest that we try first to use the mapping defined for the field and fallback to the default one if needed.
cc @melvynator
The text was updated successfully, but these errors were encountered: