!152 优化默认生成的es商品索引结构。解决初次启动时,搜索商品报错

Merge pull request !152 from OceansDeep/feature/pg
This commit is contained in:
OceansDeep 2022-04-27 10:17:58 +00:00 committed by Gitee
commit 26c9160c75
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 2 deletions

View File

@ -121,6 +121,7 @@ ignored:
- /source/**
- /common/common/slider/**
- /common/common/sms/**
- /common/common/logo
- /druid/**
- /swagger-ui.html
- /doc.html

View File

@ -33,7 +33,7 @@ public class EsGoodsAttribute implements Serializable {
/**
* 属性名称
*/
@Field(type = FieldType.Text)
@Field(type = FieldType.Text, fielddata = true)
private String name;
/**
@ -45,7 +45,7 @@ public class EsGoodsAttribute implements Serializable {
/**
* 属性值
*/
@Field(type = FieldType.Text)
@Field(type = FieldType.Text, fielddata = true)
private String value;

View File

@ -256,9 +256,11 @@ public class EsGoodsIndex implements Serializable {
* @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
*/
@ApiModelProperty(value = "商品类型", required = true)
@Field(type = FieldType.Text)
private String goodsType;
@ApiModelProperty(value = "商品sku基础分数", required = true)
@Field(type = FieldType.Integer)
private Integer skuSource;
/**