-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>featurehelp wantedadoptmeadoptme
Description
When runnig a query against a date field, it is not possible to use a long value with scientific notation.
Sample Query:
{"range":{"updatedAt":{"gte":1.478789928E12}}}
Mapping:
"updatedAt": {
"format": "strict_date_optional_time||epoch_millis",
"store": true,
"type": "date"
}
Parser Error:
{"type":"parse_exception","reason":"failed to parse date field [1.478789928E12] with format [strict_date_optional_time||epoch_millis]"}
Tested with Elasticsearch version 2.3.5 and 2.4.1
Using this format should be possible here, since JSON officially supports the scientific "E" notation in number values (see http://www.json.org)
MaGnaL, gsmet, Sanne, NonSumusDigni and maniax89
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>featurehelp wantedadoptmeadoptme