Authored by wangnan9279

模糊搜索加入ufo货号

... ... @@ -719,6 +719,9 @@
"cutdownPriceActivityIds": {
"type": "text",
"analyzer": "comma_spliter"
},
"ufoProductCode": {
"type": "keyword"
}
}
}
... ...
... ... @@ -137,6 +137,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
//Ufo
private String isUfo = "N";
private Integer ufoBrandId;
private String ufoProductCode;
//from collage_product
private String collageActivityIds;
... ... @@ -144,6 +145,14 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
//from cutdown_price_activity
private String cutdownPriceActivityIds;
public String getUfoProductCode() {
return ufoProductCode;
}
public void setUfoProductCode(String ufoProductCode) {
this.ufoProductCode = ufoProductCode;
}
public String getCutdownPriceActivityIds() {
return cutdownPriceActivityIds;
}
... ...
... ... @@ -212,6 +212,7 @@ public class ProductIndexBOToMapService {
map.put(ProductIndexEsField.isUfo, productIndexBO.getIsUfo());
map.put(ProductIndexEsField.ufoBrandId, productIndexBO.getUfoBrandId());
map.put(ProductIndexEsField.ufoProductCode, productIndexBO.getUfoProductCode());
map.put(ProductIndexEsField.cutdownPriceActivityIds, productIndexBO.getCutdownPriceActivityIds());
... ...
... ... @@ -23,6 +23,7 @@ public class UfoToYohoGeneralService {
productIndexBO.setId("ufo-" + ufoProduct.getId());
productIndexBO.setProductSkn(ufoProduct.getId());
productIndexBO.setProductName(ufoProduct.getProductName());
productIndexBO.setUfoProductCode(ufoProduct.getProductCode());
productIndexBO.setProductKeyword(ufoProduct.getKeyWords());
//状态
productIndexBO.setStatus(1);
... ...