!152 优化默认生成的es商品索引结构。解决初次启动时,搜索商品报错
Merge pull request !152 from OceansDeep/feature/pg
This commit is contained in:
commit
26c9160c75
@ -121,6 +121,7 @@ ignored:
|
|||||||
- /source/**
|
- /source/**
|
||||||
- /common/common/slider/**
|
- /common/common/slider/**
|
||||||
- /common/common/sms/**
|
- /common/common/sms/**
|
||||||
|
- /common/common/logo
|
||||||
- /druid/**
|
- /druid/**
|
||||||
- /swagger-ui.html
|
- /swagger-ui.html
|
||||||
- /doc.html
|
- /doc.html
|
||||||
|
@ -33,7 +33,7 @@ public class EsGoodsAttribute implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 属性名称
|
* 属性名称
|
||||||
*/
|
*/
|
||||||
@Field(type = FieldType.Text)
|
@Field(type = FieldType.Text, fielddata = true)
|
||||||
private String name;
|
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;
|
private String value;
|
||||||
|
|
||||||
|
|
||||||
|
@ -256,9 +256,11 @@ public class EsGoodsIndex implements Serializable {
|
|||||||
* @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
|
* @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "商品类型", required = true)
|
@ApiModelProperty(value = "商品类型", required = true)
|
||||||
|
@Field(type = FieldType.Text)
|
||||||
private String goodsType;
|
private String goodsType;
|
||||||
|
|
||||||
@ApiModelProperty(value = "商品sku基础分数", required = true)
|
@ApiModelProperty(value = "商品sku基础分数", required = true)
|
||||||
|
@Field(type = FieldType.Integer)
|
||||||
private Integer skuSource;
|
private Integer skuSource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user