I'm using Spring Data ElasticSearch v4.2.x, my data was returned in JSON String.
Here is the problem,I tried to parse JSON string to Object,then I got "java.lang.NullPointerException".I have a Date field with these annotations,I'm sure this field is causing this problem:
@Field(type = FieldType.Keyword, name = "created_at", format = DateFormat.basic_date_time, pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdAt;