Authored by zhaojun2

索引去掉shopcreatetime

@@ -80,21 +80,7 @@ public class YohoProductAnalysisIndexBuilder extends IIndexBuilder { @@ -80,21 +80,7 @@ public class YohoProductAnalysisIndexBuilder extends IIndexBuilder {
80 analysisIndexBO.setShelveTime(product.getShelveTime()); 80 analysisIndexBO.setShelveTime(product.getShelveTime());
81 List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(product.getSmallSortId()); 81 List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(product.getSmallSortId());
82 analysisIndexBO.setYhChannel(StringUtils.join(physicalChannels, ",")); 82 analysisIndexBO.setYhChannel(StringUtils.join(physicalChannels, ","));
83 - analysisIndexBO.setShopCreateTime(builderShop(product));  
84 return analysisIndexBO; 83 return analysisIndexBO;
85 } 84 }
86 85
87 - private Integer builderShop(Product product) {  
88 - try {  
89 - Map<Integer, Shops> shopsMap = basicDataCacheService.getShop();  
90 - Shops shops = shopsMap.get(product.getShopId());  
91 - if (shops != null) {  
92 - return shops.getCreateTime();  
93 - }  
94 - return null;  
95 - } catch(Exception e) {  
96 - return null;  
97 - }  
98 - }  
99 -  
100 } 86 }
@@ -59,9 +59,6 @@ @@ -59,9 +59,6 @@
59 "shelveTime": { 59 "shelveTime": {
60 "type": "long" 60 "type": "long"
61 }, 61 },
62 - "shopCreateTime": {  
63 - "type": "long"  
64 - },  
65 "yhChannel": { 62 "yhChannel": {
66 "type": "text", 63 "type": "text",
67 "analyzer": "comma_spliter" 64 "analyzer": "comma_spliter"
@@ -20,7 +20,6 @@ public class ProductAnalysisIndexBO { @@ -20,7 +20,6 @@ public class ProductAnalysisIndexBO {
20 private String gender; 20 private String gender;
21 private Integer shelveTime; 21 private Integer shelveTime;
22 private String yhChannel; 22 private String yhChannel;
23 - private Integer shopCreateTime;  
24 23
25 public Long getId() { 24 public Long getId() {
26 return id; 25 return id;
@@ -165,12 +164,4 @@ public class ProductAnalysisIndexBO { @@ -165,12 +164,4 @@ public class ProductAnalysisIndexBO {
165 public void setYhChannel(String yhChannel) { 164 public void setYhChannel(String yhChannel) {
166 this.yhChannel = yhChannel; 165 this.yhChannel = yhChannel;
167 } 166 }
168 -  
169 - public Integer getShopCreateTime() {  
170 - return shopCreateTime;  
171 - }  
172 -  
173 - public void setShopCreateTime(Integer shopCreateTime) {  
174 - this.shopCreateTime = shopCreateTime;  
175 - }  
176 } 167 }