Authored by ping

update

@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject; @@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject;
4 import com.yoho.search.dal.StoreMapper; 4 import com.yoho.search.dal.StoreMapper;
5 import com.yoho.search.dal.model.Store; 5 import com.yoho.search.dal.model.Store;
6 import com.yohomars.search.index.builder.IIndexBuilder; 6 import com.yohomars.search.index.builder.IIndexBuilder;
  7 +
  8 +import org.apache.commons.lang3.StringUtils;
7 import org.slf4j.Logger; 9 import org.slf4j.Logger;
8 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
9 import org.springframework.beans.factory.annotation.Autowired; 11 import org.springframework.beans.factory.annotation.Autowired;
@@ -74,7 +76,7 @@ public class StoreIndexBuilder extends IIndexBuilder { @@ -74,7 +76,7 @@ public class StoreIndexBuilder extends IIndexBuilder {
74 map.put("sort", store.getSort()); 76 map.put("sort", store.getSort());
75 map.put("isShield", store.getIsShield()); 77 map.put("isShield", store.getIsShield());
76 map.put("addressFull", store.getAddressFull()); 78 map.put("addressFull", store.getAddressFull());
77 - map.put("suggest", store.getStoreEnglishName() + " " + store.getStoreName()); 79 + map.put("suggest", store.getStoreEnglishName() + (StringUtils.isEmpty(store.getStoreName()) ? "" : " " + store.getStoreName()));
78 map.put("create_time", store.getCreateTime()); 80 map.put("create_time", store.getCreateTime());
79 81
80 //拼装地理位置信息 82 //拼装地理位置信息