Showing
6 changed files
with
18 additions
and
2 deletions
@@ -86,6 +86,7 @@ public class StoreIndexBuilder implements IndexBuilder { | @@ -86,6 +86,7 @@ public class StoreIndexBuilder implements IndexBuilder { | ||
86 | map.put("latitude", store.getLatitude()); | 86 | map.put("latitude", store.getLatitude()); |
87 | map.put("city_id", store.getCityId()); | 87 | map.put("city_id", store.getCityId()); |
88 | map.put("tags", store.getTags()); | 88 | map.put("tags", store.getTags()); |
89 | + map.put("theme_id", store.getTheme_id()); | ||
89 | map.put("longitude", store.getLongitude()); | 90 | map.put("longitude", store.getLongitude()); |
90 | map.put("bizId", store.getBizId()); | 91 | map.put("bizId", store.getBizId()); |
91 | map.put("order_by", store.getOrderBy()); | 92 | map.put("order_by", store.getOrderBy()); |
@@ -69,6 +69,7 @@ public class ISearchConstans { | @@ -69,6 +69,7 @@ public class ISearchConstans { | ||
69 | public static final String PARAM_SEARCH_USERAUTH ="user_auth"; | 69 | public static final String PARAM_SEARCH_USERAUTH ="user_auth"; |
70 | public static final String PARAM_SEARCH_ISDELETED ="is_deleted"; | 70 | public static final String PARAM_SEARCH_ISDELETED ="is_deleted"; |
71 | public static final String PARAM_SEARCH_UID = "uid"; | 71 | public static final String PARAM_SEARCH_UID = "uid"; |
72 | + public static final String PARAM_SEARCH_THEME_ID ="theme_id"; | ||
72 | 73 | ||
73 | //聚合场景 | 74 | //聚合场景 |
74 | public static final String AGG_BIZAREA_BY_CITY ="aggBizAreaByCity"; | 75 | public static final String AGG_BIZAREA_BY_CITY ="aggBizAreaByCity"; |
@@ -15,6 +15,8 @@ public class Store { | @@ -15,6 +15,8 @@ public class Store { | ||
15 | 15 | ||
16 | private Integer tags; | 16 | private Integer tags; |
17 | 17 | ||
18 | + private String theme_id; | ||
19 | + | ||
18 | private Double longitude; | 20 | private Double longitude; |
19 | 21 | ||
20 | private Integer bizId; | 22 | private Integer bizId; |
@@ -211,4 +213,12 @@ public class Store { | @@ -211,4 +213,12 @@ public class Store { | ||
211 | public void setCreateTime(Integer createTime) { | 213 | public void setCreateTime(Integer createTime) { |
212 | this.createTime = createTime; | 214 | this.createTime = createTime; |
213 | } | 215 | } |
216 | + | ||
217 | + public String getTheme_id() { | ||
218 | + return theme_id; | ||
219 | + } | ||
220 | + | ||
221 | + public void setTheme_id(String theme_id) { | ||
222 | + this.theme_id = theme_id; | ||
223 | + } | ||
214 | } | 224 | } |
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | <sql id="Base_Column_List"> | 27 | <sql id="Base_Column_List"> |
28 | id, store_name, store_english_name, | 28 | id, store_name, store_english_name, |
29 | store_name_tc, latitude, city_id, | 29 | store_name_tc, latitude, city_id, |
30 | - tags, longitude, biz_id, | 30 | + tags, longitude, biz_id, theme_id, |
31 | order_by, consumption, score, | 31 | order_by, consumption, score, |
32 | assessment_num, is_recommend, recommend_time, | 32 | assessment_num, is_recommend, recommend_time, |
33 | sort,is_shield, store_first, des,address_full, create_time | 33 | sort,is_shield, store_first, des,address_full, create_time |
@@ -178,7 +178,7 @@ public class SearchServiceHelper { | @@ -178,7 +178,7 @@ public class SearchServiceHelper { | ||
178 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_USERAUTH); | 178 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_USERAUTH); |
179 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_ISDELETED); | 179 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_ISDELETED); |
180 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_UID); | 180 | boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_UID); |
181 | - | 181 | + boolFilter = boolQueryBuilderWithMutiValue(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_THEME_ID); |
182 | 182 | ||
183 | boolFilter = boolQueryBuilderGte(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_STORENUM); | 183 | boolFilter = boolQueryBuilderGte(paramMap, boolFilter, ISearchConstans.PARAM_SEARCH_STORENUM); |
184 | 184 |
@@ -32,6 +32,10 @@ | @@ -32,6 +32,10 @@ | ||
32 | "type": "string", | 32 | "type": "string", |
33 | "analyzer": "ik_max_word_syno" | 33 | "analyzer": "ik_max_word_syno" |
34 | }, | 34 | }, |
35 | + "theme_id": { | ||
36 | + "type": "string", | ||
37 | + "analyzer": "ik_max_word_syno" | ||
38 | + }, | ||
35 | "longitude": { | 39 | "longitude": { |
36 | "type": "double" | 40 | "type": "double" |
37 | }, | 41 | }, |
-
Please register or login to post a comment