Authored by hugufei

UFO 【球鞋市集】 改为 【飞碟好物】

... ... @@ -2,10 +2,8 @@ package com.yoho.search.service.index;
import com.alibaba.fastjson.JSONArray;
import com.yoho.search.base.utils.ProductIndexEsField;
import com.yoho.search.common.SearchDynamicConfigService;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
... ... @@ -17,9 +15,6 @@ import java.util.Map;
@Service
public class ProductIndexBaseService {
@Autowired
private SearchDynamicConfigService searchDynamicConfigService;
// 获取从source中不返回的字段定义,用以节省带宽
private List<String> productIndexIncludeFields = new ArrayList<String>();
... ... @@ -232,7 +227,7 @@ public class ProductIndexBaseService {
//ufo
productMap.put("is_ufo", MapUtils.getString(map, ProductIndexEsField.isUfo, "N"));
if (MapUtils.getString(productMap, "is_ufo", "N").equalsIgnoreCase("Y")) {
productMap.put("product_name", "【球鞋市集】" + MapUtils.getString(productMap, "product_name", ""));
productMap.put("product_name", "【飞碟好物】" + MapUtils.getString(productMap, "product_name", ""));
}
return productMap;
}
... ...