System Specs
Elasticsearch version 6.7.0 running in application
Elasticsearch version 6.3.2 running on docker container
POM looks like this below
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>6.7.0</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>6.70</version>
</dependency>
Issue
I have a date field which uses the mapping below
"thisIsDate": {
"type": "date",
"format": "strict_date_time"
}
The field is set up like in my application
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSX", shape = JsonFormat.Shape.STRING, timezone = "UTC")
public Instant thisIsDate;
And the data I am inserting into that field looks like this.
1900-10-22T12:34:56.78Z
But I keep getting back
"reason":"failed to parse date field with format [basic_date_time]"
I have used the following formats in the mapping but none of them fix my problem
1. date_time
2. basic_date_time
3. strict_date_time
4. "yyyy-MM-dd'T'HH:mm:ss.SSSX"
Could someone point me in the right direction?