@Document(indexName=ELKClient.INDEX_NAME) public class StockQuotation { @Id private Long id; @Field (type = FieldType.String, store = true, index = FieldIndex.analyzed, searchAnalyzer = "standard", indexAnalyzer = "standard") private String stock; @Field(type=FieldType.Double, store = true, index = FieldIndex.analyzed, searchAnalyzer = "standard", indexAnalyzer = "standard") private Double value; @Field(type = FieldType.Date, format = DateFormat.custom, pattern ="dd-MM-yyyy HH:mm:ss", store = true, index = FieldIndex.analyzed, searchAnalyzer = "standard", indexAnalyzer = "standard") private Calendar timestamp; }