Authored by sang

update

... ... @@ -86,6 +86,7 @@ public class StoreIndexBuilder implements IndexBuilder {
map.put("latitude", store.getLatitude());
map.put("city_id", store.getCityId());
map.put("tags", store.getTags());
map.put("theme_id", store.getTheme_id());
map.put("longitude", store.getLongitude());
map.put("bizId", store.getBizId());
map.put("order_by", store.getOrderBy());
... ...
... ... @@ -69,6 +69,7 @@ public class ISearchConstans {
public static final String PARAM_SEARCH_USERAUTH ="user_auth";
public static final String PARAM_SEARCH_ISDELETED ="is_deleted";
public static final String PARAM_SEARCH_UID = "uid";
public static final String PARAM_SEARCH_THEME_ID ="theme_id";
//聚合场景
public static final String AGG_BIZAREA_BY_CITY ="aggBizAreaByCity";
... ...
... ... @@ -15,6 +15,8 @@ public class Store {
private Integer tags;
private String theme_id;
private Double longitude;
private Integer bizId;
... ... @@ -211,4 +213,12 @@ public class Store {
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public String getTheme_id() {
return theme_id;
}
public void setTheme_id(String theme_id) {
this.theme_id = theme_id;
}
}
\ No newline at end of file
... ...
... ... @@ -27,7 +27,7 @@
<sql id="Base_Column_List">
id, store_name, store_english_name,
store_name_tc, latitude, city_id,
tags, longitude, biz_id,
tags, longitude, biz_id, theme_id,
order_by, consumption, score,
assessment_num, is_recommend, recommend_time,
sort,is_shield, store_first, des,address_full, create_time
... ...
... ... @@ -178,7 +178,7 @@ public class SearchServiceHelper {
boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_USERAUTH);
boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_ISDELETED);
boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_UID);
boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_THEME_ID);
boolFilter = boolQueryBuilderGte(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_STORENUM);
... ...
... ... @@ -32,6 +32,10 @@
"type": "string",
"analyzer": "ik_max_word_syno"
},
"theme_id": {
"type": "string",
"analyzer": "ik_max_word_syno"
},
"longitude": {
"type": "double"
},
... ...