1. 时间的问题
// 创建时间
@Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
private LocalDate createTime;
// 更新时间
@Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
private LocalDate updateTime;
2. 无法进行聚类的问题
2.1 解决
@Field(type = FieldType.Keyword, fielddata=true)
private String categoryName;
3. 类型转换的问题
// 获取分组数据
Terms terms = Objects.requireNonNull(searchSkuInfo.getAggregations()).get(termsId);