Authored by 胡古飞

fix ProductIndexService with ProductIndexEsField

@@ -19,6 +19,10 @@ @@ -19,6 +19,10 @@
19 "bundleType": { 19 "bundleType": {
20 "type": "long" 20 "type": "long"
21 }, 21 },
  22 + "yohoodId": {
  23 + "type": "string",
  24 + "analyzer": "comma_spliter"
  25 + },
22 "salesNum": { 26 "salesNum": {
23 "type": "long", 27 "type": "long",
24 "doc_values": true, 28 "doc_values": true,
@@ -241,6 +245,9 @@ @@ -241,6 +245,9 @@
241 "type": "string", 245 "type": "string",
242 "index": "not_analyzed" 246 "index": "not_analyzed"
243 }, 247 },
  248 + "isauditing": {
  249 + "type": "long",
  250 + },
244 "brandAlif": { 251 "brandAlif": {
245 "type": "string", 252 "type": "string",
246 "index": "not_analyzed", 253 "index": "not_analyzed",
@@ -599,6 +606,12 @@ @@ -599,6 +606,12 @@
599 "format": "doc_values" 606 "format": "doc_values"
600 } 607 }
601 }, 608 },
  609 + "issales": {
  610 + "type": "long"
  611 + },
  612 + "seriesId": {
  613 + "type": "long"
  614 + },
602 "isHot": { 615 "isHot": {
603 "type": "string", 616 "type": "string",
604 "index": "not_analyzed", 617 "index": "not_analyzed",
1 package com.yoho.search.consumer.service.base; 1 package com.yoho.search.consumer.service.base;
2 2
3 -import com.alibaba.fastjson.JSONArray;  
4 -import com.alibaba.fastjson.JSONException;  
5 -import com.yoho.search.consumer.service.bo.ProductIndexBO;  
6 -import com.yoho.search.consumer.service.logic.tools.SpecialDealLogicService; 3 +import java.math.BigDecimal;
  4 +import java.util.HashMap;
  5 +import java.util.Map;
  6 +
7 import org.apache.commons.lang.StringUtils; 7 import org.apache.commons.lang.StringUtils;
8 import org.slf4j.Logger; 8 import org.slf4j.Logger;
9 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
10 import org.springframework.beans.factory.annotation.Autowired; 10 import org.springframework.beans.factory.annotation.Autowired;
11 import org.springframework.stereotype.Component; 11 import org.springframework.stereotype.Component;
12 12
13 -import java.math.BigDecimal;  
14 -import java.util.HashMap;  
15 -import java.util.Map; 13 +import com.alibaba.fastjson.JSONArray;
  14 +import com.alibaba.fastjson.JSONException;
  15 +import com.yoho.search.base.utils.ProductIndexEsField;
  16 +import com.yoho.search.consumer.service.bo.ProductIndexBO;
  17 +import com.yoho.search.consumer.service.logic.tools.SpecialDealLogicService;
16 18
17 @Component 19 @Component
18 public class ProductIndexService { 20 public class ProductIndexService {
@@ -27,147 +29,146 @@ public class ProductIndexService { @@ -27,147 +29,146 @@ public class ProductIndexService {
27 // 对productIndexBO做特殊处理 29 // 对productIndexBO做特殊处理
28 specialDealLogicService.specialDealProductIndex(productIndexBO); 30 specialDealLogicService.specialDealProductIndex(productIndexBO);
29 Map map = new HashMap(); 31 Map map = new HashMap();
30 - map.put("id", productIndexBO.getId());  
31 - map.put("productId", productIndexBO.getProductId());  
32 - map.put("shopId", productIndexBO.getShopId()); 32 + map.put(ProductIndexEsField.id, productIndexBO.getId());
  33 + map.put(ProductIndexEsField.productId, productIndexBO.getProductId());
  34 + map.put(ProductIndexEsField.shopId, productIndexBO.getShopId());
33 if (productIndexBO.getSalesNum() != null) { 35 if (productIndexBO.getSalesNum() != null) {
34 - map.put("salesNum", productIndexBO.getSalesNum()); 36 + map.put(ProductIndexEsField.salesNum, productIndexBO.getSalesNum());
35 } 37 }
36 - map.put("shelveTime", productIndexBO.getShelveTime());  
37 - map.put("shelveDay", productIndexBO.getShelveDay());  
38 - map.put("cnAlphabet", productIndexBO.getCnAlphabet());  
39 - map.put("productName", productIndexBO.getProductName());  
40 - map.put("brandNameCn", productIndexBO.getBrandNameCn());  
41 - map.put("brandNameEn", productIndexBO.getBrandNameEn());  
42 - map.put("brandKeyword", productIndexBO.getBrandKeyword());  
43 - map.put("hotKeyword", productIndexBO.getHotKeyword());  
44 - map.put("brandName", productIndexBO.getBrandName());  
45 - map.put("style", productIndexBO.getStyle());  
46 - map.put("salesPhrase", productIndexBO.getSalesPhrase());  
47 - map.put("maxSortId", productIndexBO.getMaxSortId());  
48 - map.put("maxSortName", productIndexBO.getMaxSortName());  
49 - map.put("middleSortId", productIndexBO.getMiddleSortId());  
50 - map.put("middleSortName", productIndexBO.getMiddleSortName());  
51 - map.put("smallSortId", productIndexBO.getSmallSortId());  
52 - map.put("smallSortName", productIndexBO.getSmallSortName());  
53 - map.put("gender", productIndexBO.getGender());  
54 - map.put("brandId", productIndexBO.getBrandId());  
55 - map.put("isSpecial", productIndexBO.getIsSpecial());  
56 - map.put("status", productIndexBO.getStatus());  
57 - map.put("seasonsS", productIndexBO.getSeasonsS());  
58 - map.put("isspecial", productIndexBO.getIsspecial());  
59 - map.put("isHot", productIndexBO.getIsHot());  
60 - map.put("folderId", productIndexBO.getFolderId());  
61 - map.put("ishot", productIndexBO.getIshot());  
62 - map.put("ispromotion", productIndexBO.getIspromotion());  
63 - map.put("seriesId", productIndexBO.getSeriesId());  
64 - map.put("isSales", productIndexBO.getIsSales());  
65 - map.put("issales", productIndexBO.getIssales());  
66 - map.put("isAdvance", productIndexBO.getIsAdvance());  
67 - map.put("isadvance", productIndexBO.getIsadvance());  
68 - map.put("isDepositAdvance", productIndexBO.getIsDepositAdvance());  
69 - map.put("isLimitbuy", productIndexBO.getIsLimitbuy());  
70 - map.put("isAuditing", productIndexBO.getIsAuditing());  
71 - map.put("isauditing", productIndexBO.getIsauditing());  
72 - map.put("attribute", productIndexBO.getAttribute());  
73 - map.put("seasons", productIndexBO.getSeasons());  
74 - map.put("isDown", productIndexBO.getIsDown());  
75 - map.put("isdown", productIndexBO.getIsdown());  
76 - map.put("isrecommend", productIndexBO.getIsrecommend());  
77 - map.put("isOutlets", productIndexBO.getIsOutlets());  
78 - map.put("firstShelveTime", productIndexBO.getFirstShelveTime()); 38 + map.put(ProductIndexEsField.shelveTime, productIndexBO.getShelveTime());
  39 + map.put(ProductIndexEsField.shelveDay, productIndexBO.getShelveDay());
  40 + map.put(ProductIndexEsField.cnAlphabet, productIndexBO.getCnAlphabet());
  41 + map.put(ProductIndexEsField.productName, productIndexBO.getProductName());
  42 + map.put(ProductIndexEsField.brandNameCn, productIndexBO.getBrandNameCn());
  43 + map.put(ProductIndexEsField.brandNameEn, productIndexBO.getBrandNameEn());
  44 + map.put(ProductIndexEsField.brandKeyword, productIndexBO.getBrandKeyword());
  45 + map.put(ProductIndexEsField.hotKeyword, productIndexBO.getHotKeyword());
  46 + map.put(ProductIndexEsField.brandName, productIndexBO.getBrandName());
  47 + map.put(ProductIndexEsField.style, productIndexBO.getStyle());
  48 + map.put(ProductIndexEsField.salesPhrase, productIndexBO.getSalesPhrase());
  49 + map.put(ProductIndexEsField.maxSortId, productIndexBO.getMaxSortId());
  50 + map.put(ProductIndexEsField.maxSortName, productIndexBO.getMaxSortName());
  51 + map.put(ProductIndexEsField.middleSortId, productIndexBO.getMiddleSortId());
  52 + map.put(ProductIndexEsField.middleSortName, productIndexBO.getMiddleSortName());
  53 + map.put(ProductIndexEsField.smallSortId, productIndexBO.getSmallSortId());
  54 + map.put(ProductIndexEsField.smallSortName, productIndexBO.getSmallSortName());
  55 + map.put(ProductIndexEsField.gender, productIndexBO.getGender());
  56 + map.put(ProductIndexEsField.brandId, productIndexBO.getBrandId());
  57 + map.put(ProductIndexEsField.isSpecial, productIndexBO.getIsSpecial());
  58 + map.put(ProductIndexEsField.status, productIndexBO.getStatus());
  59 + map.put(ProductIndexEsField.seasonsS, productIndexBO.getSeasonsS());
  60 + map.put(ProductIndexEsField.isspecial, productIndexBO.getIsspecial());
  61 + map.put(ProductIndexEsField.isHot, productIndexBO.getIsHot());
  62 + map.put(ProductIndexEsField.folderId, productIndexBO.getFolderId());
  63 + map.put(ProductIndexEsField.ishot, productIndexBO.getIshot());
  64 + map.put(ProductIndexEsField.ispromotion, productIndexBO.getIspromotion());
  65 + map.put(ProductIndexEsField.seriesId, productIndexBO.getSeriesId());
  66 + map.put(ProductIndexEsField.isSales, productIndexBO.getIsSales());
  67 + map.put(ProductIndexEsField.issales, productIndexBO.getIssales());
  68 + map.put(ProductIndexEsField.isAdvance, productIndexBO.getIsAdvance());
  69 + map.put(ProductIndexEsField.isadvance, productIndexBO.getIsadvance());
  70 + map.put(ProductIndexEsField.isDepositAdvance, productIndexBO.getIsDepositAdvance());
  71 + map.put(ProductIndexEsField.isLimitbuy, productIndexBO.getIsLimitbuy());
  72 + map.put(ProductIndexEsField.isAuditing, productIndexBO.getIsAuditing());
  73 + map.put(ProductIndexEsField.isauditing, productIndexBO.getIsauditing());
  74 + map.put(ProductIndexEsField.attribute, productIndexBO.getAttribute());
  75 + map.put(ProductIndexEsField.seasons, productIndexBO.getSeasons());
  76 + map.put(ProductIndexEsField.isDown, productIndexBO.getIsDown());
  77 + map.put(ProductIndexEsField.isdown, productIndexBO.getIsdown());
  78 + map.put(ProductIndexEsField.isrecommend, productIndexBO.getIsrecommend());
  79 + map.put(ProductIndexEsField.isOutlets, productIndexBO.getIsOutlets());
  80 + map.put(ProductIndexEsField.firstShelveTime, productIndexBO.getFirstShelveTime());
79 BigDecimal temp = productIndexBO.getSpecialPrice(); 81 BigDecimal temp = productIndexBO.getSpecialPrice();
80 if (temp != null) { 82 if (temp != null) {
81 - map.put("specialPrice", productIndexBO.getSpecialPrice().doubleValue()); 83 + map.put(ProductIndexEsField.specialPrice, productIndexBO.getSpecialPrice().doubleValue());
82 } 84 }
83 temp = productIndexBO.getMarketPrice(); 85 temp = productIndexBO.getMarketPrice();
84 if (temp != null) { 86 if (temp != null) {
85 - map.put("marketPrice", productIndexBO.getMarketPrice().doubleValue()); 87 + map.put(ProductIndexEsField.marketPrice, productIndexBO.getMarketPrice().doubleValue());
86 } 88 }
87 temp = productIndexBO.getVipPrice(); 89 temp = productIndexBO.getVipPrice();
88 if (temp != null) { 90 if (temp != null) {
89 - map.put("vipPrice", productIndexBO.getVipPrice().doubleValue()); 91 + map.put(ProductIndexEsField.vipPrice, productIndexBO.getVipPrice().doubleValue());
90 } 92 }
91 temp = productIndexBO.getVip1Price(); 93 temp = productIndexBO.getVip1Price();
92 if (temp != null) { 94 if (temp != null) {
93 - map.put("vip1Price", productIndexBO.getVip1Price().doubleValue()); 95 + map.put(ProductIndexEsField.vip1Price, productIndexBO.getVip1Price().doubleValue());
94 } 96 }
95 temp = productIndexBO.getVip2Price(); 97 temp = productIndexBO.getVip2Price();
96 if (temp != null) { 98 if (temp != null) {
97 - map.put("vip2Price", productIndexBO.getVip2Price().doubleValue()); 99 + map.put(ProductIndexEsField.vip2Price, productIndexBO.getVip2Price().doubleValue());
98 } 100 }
99 temp = productIndexBO.getVip3Price(); 101 temp = productIndexBO.getVip3Price();
100 if (temp != null) { 102 if (temp != null) {
101 - map.put("vip3Price", productIndexBO.getVip3Price().doubleValue()); 103 + map.put(ProductIndexEsField.vip3Price, productIndexBO.getVip3Price().doubleValue());
102 } 104 }
103 temp = productIndexBO.getSalesPrice(); 105 temp = productIndexBO.getSalesPrice();
104 if (temp != null) { 106 if (temp != null) {
105 - map.put("salesPrice", productIndexBO.getSalesPrice().doubleValue()); 107 + map.put(ProductIndexEsField.salesPrice, productIndexBO.getSalesPrice().doubleValue());
106 } 108 }
107 - map.put("vipLevels", productIndexBO.getVipLevels()); 109 + map.put(ProductIndexEsField.vipLevels, productIndexBO.getVipLevels());
108 temp = productIndexBO.getPromotionDiscount(); 110 temp = productIndexBO.getPromotionDiscount();
109 if (temp != null) { 111 if (temp != null) {
110 - map.put("promotionDiscount", productIndexBO.getPromotionDiscount().doubleValue()); 112 + map.put(ProductIndexEsField.promotionDiscount, productIndexBO.getPromotionDiscount().doubleValue());
111 } 113 }
112 - map.put("vipDiscountType", productIndexBO.getVipDiscountType());  
113 - map.put("promotionDiscountInt", productIndexBO.getPromotionDiscountInt());  
114 - map.put("specialoffer", productIndexBO.getSpecialoffer());  
115 - map.put("sellChannels", productIndexBO.getSellChannels());  
116 - map.put("productSkn", productIndexBO.getProductSkn()); 114 + map.put(ProductIndexEsField.vipDiscountType, productIndexBO.getVipDiscountType());
  115 + map.put(ProductIndexEsField.promotionDiscountInt, productIndexBO.getPromotionDiscountInt());
  116 + map.put(ProductIndexEsField.specialoffer, productIndexBO.getSpecialoffer());
  117 + map.put(ProductIndexEsField.sellChannels, productIndexBO.getSellChannels());
  118 + map.put(ProductIndexEsField.productSkn, productIndexBO.getProductSkn());
117 temp = productIndexBO.getStorageNum(); 119 temp = productIndexBO.getStorageNum();
118 if (temp != null) { 120 if (temp != null) {
119 - map.put("storageNum", productIndexBO.getStorageNum().longValue()); 121 + map.put(ProductIndexEsField.storageNum, productIndexBO.getStorageNum().longValue());
120 } 122 }
121 - map.put("islimited", productIndexBO.getIslimited());  
122 - map.put("isnew", productIndexBO.getIsnew());  
123 - map.put("colorIds", productIndexBO.getColorIds());  
124 - map.put("colorNames", productIndexBO.getColorNames());  
125 - map.put("sizeIds", productIndexBO.getSizeIds());  
126 - map.put("sizeNames", productIndexBO.getSizeNames());  
127 - map.put("standardIds", productIndexBO.getStandardIds());  
128 - map.put("standardNames", productIndexBO.getStandardNames());  
129 - map.put("styleIds", productIndexBO.getStyleIds());  
130 - map.put("defaultImages", productIndexBO.getDefaultImages());  
131 - map.put("genderS", productIndexBO.getGenderS());  
132 - map.put("brandDomain", productIndexBO.getBrandDomain());  
133 - map.put("brandAlif", productIndexBO.getBrandAlif());  
134 - map.put("editTime", productIndexBO.getEditTime());  
135 - map.put("isSoonSoldOut", productIndexBO.getIsSoonSoldOut());  
136 - map.put("isSoldOut", productIndexBO.getIsSoldOut());  
137 - map.put("soldOut", productIndexBO.getSoldOut());  
138 - map.put("isDiscount", productIndexBO.getIsDiscount());  
139 - map.put("sortWeight", productIndexBO.getSortWeight());  
140 - map.put("brandWeight", productIndexBO.getBrandWeight());  
141 - map.put("shopWeight", productIndexBO.getShopWeight());  
142 - map.put("yohoodId", productIndexBO.getYohoodId());  
143 - map.put("standardOnlyNames", productIndexBO.getStandardOnlyNames());  
144 - map.put("maxSort", productIndexBO.getMaxSort());  
145 - map.put("middleSort", productIndexBO.getMiddleSort());  
146 - map.put("smallSort", productIndexBO.getSmallSort());  
147 - map.put("basePinRatio", productIndexBO.getBasePinRatio());  
148 -  
149 - map.put("breakingRate", productIndexBO.getBreakingRate());  
150 - map.put("discountScore", productIndexBO.getDiscountScore());  
151 - map.put("poolId", productIndexBO.getPoolId());  
152 - map.put("productKeyword", productIndexBO.getProductKeyword());  
153 - map.put("ageLevel", productIndexBO.getAgeLevel());  
154 - map.put("isGlobal", productIndexBO.getIsGlobal());  
155 - map.put("appType", productIndexBO.getAppType()); 123 + map.put(ProductIndexEsField.islimited, productIndexBO.getIslimited());
  124 + map.put(ProductIndexEsField.isnew, productIndexBO.getIsnew());
  125 + map.put(ProductIndexEsField.colorIds, productIndexBO.getColorIds());
  126 + map.put(ProductIndexEsField.colorNames, productIndexBO.getColorNames());
  127 + map.put(ProductIndexEsField.sizeIds, productIndexBO.getSizeIds());
  128 + map.put(ProductIndexEsField.sizeNames, productIndexBO.getSizeNames());
  129 + map.put(ProductIndexEsField.standardIds, productIndexBO.getStandardIds());
  130 + map.put(ProductIndexEsField.standardNames, productIndexBO.getStandardNames());
  131 + map.put(ProductIndexEsField.styleIds, productIndexBO.getStyleIds());
  132 + map.put(ProductIndexEsField.defaultImages, productIndexBO.getDefaultImages());
  133 + map.put(ProductIndexEsField.genderS, productIndexBO.getGenderS());
  134 + map.put(ProductIndexEsField.brandDomain, productIndexBO.getBrandDomain());
  135 + map.put(ProductIndexEsField.brandAlif, productIndexBO.getBrandAlif());
  136 + map.put(ProductIndexEsField.editTime, productIndexBO.getEditTime());
  137 + map.put(ProductIndexEsField.isSoonSoldOut, productIndexBO.getIsSoonSoldOut());
  138 + map.put(ProductIndexEsField.isSoldOut, productIndexBO.getIsSoldOut());
  139 + map.put(ProductIndexEsField.soldOut, productIndexBO.getSoldOut());
  140 + map.put(ProductIndexEsField.isDiscount, productIndexBO.getIsDiscount());
  141 + map.put(ProductIndexEsField.sortWeight, productIndexBO.getSortWeight());
  142 + map.put(ProductIndexEsField.brandWeight, productIndexBO.getBrandWeight());
  143 + map.put(ProductIndexEsField.shopWeight, productIndexBO.getShopWeight());
  144 + map.put(ProductIndexEsField.yohoodId, productIndexBO.getYohoodId());
  145 + map.put(ProductIndexEsField.standardOnlyNames, productIndexBO.getStandardOnlyNames());
  146 + map.put(ProductIndexEsField.maxSort, productIndexBO.getMaxSort());
  147 + map.put(ProductIndexEsField.middleSort, productIndexBO.getMiddleSort());
  148 + map.put(ProductIndexEsField.smallSort, productIndexBO.getSmallSort());
  149 + map.put(ProductIndexEsField.basePinRatio, productIndexBO.getBasePinRatio());
156 150
157 - map.put("studentPrice", productIndexBO.getStudentPrice());  
158 - map.put("isStudentPrice", productIndexBO.getIsStudentPrice());  
159 - map.put("isInstalment", productIndexBO.getIsInstalment());  
160 - map.put("countryId", productIndexBO.getCountryId());  
161 - map.put("isstudentrebate", productIndexBO.getIsStudentRebate());  
162 - map.put("isSeckill", productIndexBO.getIsSeckill());  
163 - map.put("storageUpdateTime", productIndexBO.getStorageUpdateTime()); 151 + map.put(ProductIndexEsField.breakingRate, productIndexBO.getBreakingRate());
  152 + map.put(ProductIndexEsField.discountScore, productIndexBO.getDiscountScore());
  153 + map.put(ProductIndexEsField.poolId, productIndexBO.getPoolId());
  154 + map.put(ProductIndexEsField.productKeyword, productIndexBO.getProductKeyword());
  155 + map.put(ProductIndexEsField.ageLevel, productIndexBO.getAgeLevel());
  156 + map.put(ProductIndexEsField.isGlobal, productIndexBO.getIsGlobal());
  157 + map.put(ProductIndexEsField.appType, productIndexBO.getAppType());
164 158
  159 + map.put(ProductIndexEsField.studentPrice, productIndexBO.getStudentPrice());
  160 + map.put(ProductIndexEsField.isStudentPrice, productIndexBO.getIsStudentPrice());
  161 + map.put(ProductIndexEsField.isInstalment, productIndexBO.getIsInstalment());
  162 + map.put(ProductIndexEsField.countryId, productIndexBO.getCountryId());
  163 + map.put(ProductIndexEsField.isstudentrebate, productIndexBO.getIsStudentRebate());
  164 + map.put(ProductIndexEsField.isSeckill, productIndexBO.getIsSeckill());
  165 + map.put(ProductIndexEsField.storageUpdateTime, productIndexBO.getStorageUpdateTime());
165 166
166 String goodsListStr = productIndexBO.getGoodsList(); 167 String goodsListStr = productIndexBO.getGoodsList();
167 if (StringUtils.isNotBlank(goodsListStr)) { 168 if (StringUtils.isNotBlank(goodsListStr)) {
168 try { 169 try {
169 JSONArray jsonArray = JSONArray.parseArray(goodsListStr); 170 JSONArray jsonArray = JSONArray.parseArray(goodsListStr);
170 - map.put("goodsList", jsonArray); 171 + map.put(ProductIndexEsField.goodsList, jsonArray);
171 } catch (JSONException e) { 172 } catch (JSONException e) {
172 logger.error("[id={}} [goodsListStr={}] [e={}]", productIndexBO.getId(), goodsListStr, e.getMessage()); 173 logger.error("[id={}} [goodsListStr={}] [e={}]", productIndexBO.getId(), goodsListStr, e.getMessage());
173 } 174 }
@@ -177,29 +178,29 @@ public class ProductIndexService { @@ -177,29 +178,29 @@ public class ProductIndexService {
177 if (StringUtils.isNotBlank(activitiesStr)) { 178 if (StringUtils.isNotBlank(activitiesStr)) {
178 try { 179 try {
179 JSONArray jsonArray = JSONArray.parseArray(activitiesStr); 180 JSONArray jsonArray = JSONArray.parseArray(activitiesStr);
180 - map.put("activities", jsonArray); 181 + map.put(ProductIndexEsField.activities, jsonArray);
181 } catch (JSONException e) { 182 } catch (JSONException e) {
182 logger.error("[id={}} [activitiesStr={}] [e={}]", productIndexBO.getId(), activitiesStr, e.getMessage()); 183 logger.error("[id={}} [activitiesStr={}] [e={}]", productIndexBO.getId(), activitiesStr, e.getMessage());
183 } 184 }
184 } 185 }
185 - map.put("specialSearchField", productIndexBO.getSpecialSearchField());  
186 - map.put("isForbiddenSortBrand", productIndexBO.getIsForbiddenSortBrand());  
187 - map.put("forbiddenPageIds", productIndexBO.getForbiddenPageIds());  
188 - map.put("productFeatureFactor", productIndexBO.getProductFeatureFactor());  
189 - map.put("tblCountryId", productIndexBO.getTblCountryId());  
190 - map.put("tblCountryName", productIndexBO.getTblCountryName());  
191 - map.put("pools", productIndexBO.getPools());  
192 - map.put("marketPhrase", productIndexBO.getMarketPhrase());  
193 - map.put("physicalChannels", productIndexBO.getPhysicalChannels());  
194 - map.put("sknDefaultImg", productIndexBO.getSknDefaultImg());  
195 - map.put("phrase", productIndexBO.getPhrase());  
196 - map.put("isPhraseExist", productIndexBO.getIsPhraseExist());  
197 - map.put("pattern", productIndexBO.getPattern());  
198 - map.put("attributeNames", productIndexBO.getAttributeNames());  
199 - map.put("shopName", productIndexBO.getShopName());  
200 - map.put("shopDomain", productIndexBO.getShopDomain());  
201 - map.put("productAttrField", productIndexBO.getProductAttrField());  
202 - map.put("bundleType", productIndexBO.getBundleType()); 186 + map.put(ProductIndexEsField.specialSearchField, productIndexBO.getSpecialSearchField());
  187 + map.put(ProductIndexEsField.isForbiddenSortBrand, productIndexBO.getIsForbiddenSortBrand());
  188 + map.put(ProductIndexEsField.forbiddenPageIds, productIndexBO.getForbiddenPageIds());
  189 + map.put(ProductIndexEsField.productFeatureFactor, productIndexBO.getProductFeatureFactor());
  190 + map.put(ProductIndexEsField.tblCountryId, productIndexBO.getTblCountryId());
  191 + map.put(ProductIndexEsField.tblCountryName, productIndexBO.getTblCountryName());
  192 + map.put(ProductIndexEsField.pools, productIndexBO.getPools());
  193 + map.put(ProductIndexEsField.marketPhrase, productIndexBO.getMarketPhrase());
  194 + map.put(ProductIndexEsField.physicalChannels, productIndexBO.getPhysicalChannels());
  195 + map.put(ProductIndexEsField.sknDefaultImg, productIndexBO.getSknDefaultImg());
  196 + map.put(ProductIndexEsField.phrase, productIndexBO.getPhrase());
  197 + map.put(ProductIndexEsField.isPhraseExist, productIndexBO.getIsPhraseExist());
  198 + map.put(ProductIndexEsField.pattern, productIndexBO.getPattern());
  199 + map.put(ProductIndexEsField.attributeNames, productIndexBO.getAttributeNames());
  200 + map.put(ProductIndexEsField.shopName, productIndexBO.getShopName());
  201 + map.put(ProductIndexEsField.shopDomain, productIndexBO.getShopDomain());
  202 + map.put(ProductIndexEsField.productAttrField, productIndexBO.getProductAttrField());
  203 + map.put(ProductIndexEsField.bundleType, productIndexBO.getBundleType());
203 return map; 204 return map;
204 } 205 }
205 206