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