连接es报错问题修复
This commit is contained in:
@@ -18,20 +18,20 @@ public class EsProduct implements Serializable {
|
||||
private static final long serialVersionUID = -1L;
|
||||
@Id
|
||||
private Long id;
|
||||
@Field(index = false)
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String productSn;
|
||||
private Long brandId;
|
||||
@Field(index = false)
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String brandName;
|
||||
private Long productCategoryId;
|
||||
@Field(index = false)
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String productCategoryName;
|
||||
private String pic;
|
||||
@Field(analyzer = "ik_max_word")
|
||||
@Field(analyzer = "ik_max_word",type = FieldType.Text)
|
||||
private String name;
|
||||
@Field(analyzer = "ik_max_word")
|
||||
@Field(analyzer = "ik_max_word",type = FieldType.Text)
|
||||
private String subTitle;
|
||||
@Field(analyzer = "ik_max_word")
|
||||
@Field(analyzer = "ik_max_word",type = FieldType.Text)
|
||||
private String keywords;
|
||||
private BigDecimal price;
|
||||
private Integer sale;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.macro.mall.search.domain;
|
||||
|
||||
import org.springframework.data.elasticsearch.annotations.Field;
|
||||
import org.springframework.data.elasticsearch.annotations.FieldType;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -13,12 +14,12 @@ public class EsProductAttributeValue implements Serializable {
|
||||
private Long id;
|
||||
private Long productAttributeId;
|
||||
//属性值
|
||||
@Field(index = false)
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String value;
|
||||
//属性参数:0->规格;1->参数
|
||||
private Integer type;
|
||||
//属性名称
|
||||
@Field(index = false)
|
||||
@Field(type=FieldType.Keyword)
|
||||
private String name;
|
||||
public Long getId() {
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user