|
@@ -7,7 +7,15 @@ import org.elasticsearch.index.query.BoolQueryBuilder; |
|
@@ -7,7 +7,15 @@ import org.elasticsearch.index.query.BoolQueryBuilder; |
7
|
import com.yoho.search.service.vo.SearchApiResult;
|
7
|
import com.yoho.search.service.vo.SearchApiResult;
|
8
|
|
8
|
|
9
|
public interface IBrandService {
|
9
|
public interface IBrandService {
|
10
|
-
|
10
|
+
|
|
|
11
|
+ /**
|
|
|
12
|
+ * 获取商品列表[直接从brand索引里取全部][不返回全球购品牌]
|
|
|
13
|
+ *
|
|
|
14
|
+ * @param paramMap
|
|
|
15
|
+ * @return
|
|
|
16
|
+ */
|
|
|
17
|
+ public SearchApiResult brandList(Map<String, String> paramMap);
|
|
|
18
|
+
|
11
|
/**
|
19
|
/**
|
12
|
* 获取品牌的聚合结果[使用本地缓存][按参数决定是否返回全球购品牌]
|
20
|
* 获取品牌的聚合结果[使用本地缓存][按参数决定是否返回全球购品牌]
|
13
|
*
|
21
|
*
|
|
@@ -15,14 +23,14 @@ public interface IBrandService { |
|
@@ -15,14 +23,14 @@ public interface IBrandService { |
15
|
* @return
|
23
|
* @return
|
16
|
*/
|
24
|
*/
|
17
|
public SearchApiResult aggBrand(Map<String, String> paramMap);
|
25
|
public SearchApiResult aggBrand(Map<String, String> paramMap);
|
18
|
-
|
26
|
+
|
19
|
/**
|
27
|
/**
|
20
|
* 获取品牌的聚合结果[使用本地缓存][按参数决定是否返回全球购品牌]
|
28
|
* 获取品牌的聚合结果[使用本地缓存][按参数决定是否返回全球购品牌]
|
21
|
*
|
29
|
*
|
22
|
* @param paramMap
|
30
|
* @param paramMap
|
23
|
* @return
|
31
|
* @return
|
24
|
*/
|
32
|
*/
|
25
|
- public SearchApiResult aggBrand(Map<String, String> paramMap,BoolQueryBuilder mustFilter);
|
33
|
+ public SearchApiResult aggBrand(Map<String, String> paramMap, BoolQueryBuilder mustFilter);
|
26
|
|
34
|
|
27
|
/**
|
35
|
/**
|
28
|
* 按品牌前缀名获取品牌列表[按参数决定是否返回全球购品牌]
|
36
|
* 按品牌前缀名获取品牌列表[按参数决定是否返回全球购品牌]
|
|
@@ -33,33 +41,26 @@ public interface IBrandService { |
|
@@ -33,33 +41,26 @@ public interface IBrandService { |
33
|
public SearchApiResult brands(Map<String, String> paramMap);
|
41
|
public SearchApiResult brands(Map<String, String> paramMap);
|
34
|
|
42
|
|
35
|
/**
|
43
|
/**
|
36
|
- * 获取商品列表[直接从brand索引里取全部][不返回全球购品牌]
|
44
|
+ * 按品牌聚合商品[按参数决定是否返回全球购品牌]
|
37
|
*
|
45
|
*
|
38
|
* @param paramMap
|
46
|
* @param paramMap
|
39
|
* @return
|
47
|
* @return
|
40
|
*/
|
48
|
*/
|
41
|
- public SearchApiResult brandList(Map<String, String> paramMap);
|
|
|
42
|
-
|
49
|
+ public SearchApiResult groupBrands(Map<String, String> paramMap);
|
|
|
50
|
+
|
43
|
/**
|
51
|
/**
|
44
|
- * 按品牌聚合商品[按参数决定是否返回全球购品牌]
|
52
|
+ * 聚合不同品牌的最新商品
|
|
|
53
|
+ *
|
45
|
* @param paramMap
|
54
|
* @param paramMap
|
46
|
* @return
|
55
|
* @return
|
47
|
*/
|
56
|
*/
|
48
|
- public SearchApiResult groupBrands(Map<String, String> paramMap);
|
|
|
49
|
-
|
|
|
50
|
- /**
|
|
|
51
|
- * 聚合不同品牌的最新商品
|
|
|
52
|
- *
|
|
|
53
|
- * @param paramMap
|
|
|
54
|
- * @return
|
|
|
55
|
- */
|
|
|
56
|
- public SearchApiResult aggProductsByBrandId(Map<String, String> paramMap);
|
57
|
+ public SearchApiResult aggProductsByBrandId(Map<String, String> paramMap);
|
57
|
|
58
|
|
58
|
- /**
|
|
|
59
|
- * 获取不同品牌的商品列表【按order参数对商品排序】【参数要传brand】
|
|
|
60
|
- *
|
|
|
61
|
- * @param paramMap
|
|
|
62
|
- * @return
|
|
|
63
|
- */
|
|
|
64
|
- public SearchApiResult aggProductsByBrandIdInParam(Map<String, String> paramMap);
|
59
|
+ /**
|
|
|
60
|
+ * 获取不同品牌的商品列表【按order参数对商品排序】【参数要传brand】
|
|
|
61
|
+ *
|
|
|
62
|
+ * @param paramMap
|
|
|
63
|
+ * @return
|
|
|
64
|
+ */
|
|
|
65
|
+ public SearchApiResult aggProductsByBrandIdInParam(Map<String, String> paramMap);
|
65
|
} |
66
|
} |