Authored by zhaojun2

索引去掉shopcreatetime

... ... @@ -80,21 +80,7 @@ public class YohoProductAnalysisIndexBuilder extends IIndexBuilder {
analysisIndexBO.setShelveTime(product.getShelveTime());
List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(product.getSmallSortId());
analysisIndexBO.setYhChannel(StringUtils.join(physicalChannels, ","));
analysisIndexBO.setShopCreateTime(builderShop(product));
return analysisIndexBO;
}
private Integer builderShop(Product product) {
try {
Map<Integer, Shops> shopsMap = basicDataCacheService.getShop();
Shops shops = shopsMap.get(product.getShopId());
if (shops != null) {
return shops.getCreateTime();
}
return null;
} catch(Exception e) {
return null;
}
}
}
... ...
... ... @@ -59,9 +59,6 @@
"shelveTime": {
"type": "long"
},
"shopCreateTime": {
"type": "long"
},
"yhChannel": {
"type": "text",
"analyzer": "comma_spliter"
... ...
... ... @@ -20,7 +20,6 @@ public class ProductAnalysisIndexBO {
private String gender;
private Integer shelveTime;
private String yhChannel;
private Integer shopCreateTime;
public Long getId() {
return id;
... ... @@ -165,12 +164,4 @@ public class ProductAnalysisIndexBO {
public void setYhChannel(String yhChannel) {
this.yhChannel = yhChannel;
}
public Integer getShopCreateTime() {
return shopCreateTime;
}
public void setShopCreateTime(Integer shopCreateTime) {
this.shopCreateTime = shopCreateTime;
}
}
... ...