Authored by wangnan9279

tblproduct索引用表数据重建

@@ -16,17 +16,18 @@ import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation; @@ -16,17 +16,18 @@ import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
16 import org.elasticsearch.search.sort.SortBuilder; 16 import org.elasticsearch.search.sort.SortBuilder;
17 import org.elasticsearch.search.sort.SortBuilders; 17 import org.elasticsearch.search.sort.SortBuilders;
18 import org.elasticsearch.search.sort.SortOrder; 18 import org.elasticsearch.search.sort.SortOrder;
  19 +import org.slf4j.Logger;
  20 +import org.slf4j.LoggerFactory;
19 import org.springframework.beans.factory.annotation.Autowired; 21 import org.springframework.beans.factory.annotation.Autowired;
20 import org.springframework.stereotype.Service; 22 import org.springframework.stereotype.Service;
21 23
22 -import java.util.ArrayList;  
23 -import java.util.HashMap;  
24 -import java.util.List;  
25 -import java.util.Map; 24 +import java.util.*;
26 25
27 @Service 26 @Service
28 public class TblProductService { 27 public class TblProductService {
29 28
  29 + private static final Logger logger = LoggerFactory.getLogger(TblProductService.class);
  30 +
30 @Autowired 31 @Autowired
31 private SearchCommonService searchCommonService; 32 private SearchCommonService searchCommonService;
32 @Autowired 33 @Autowired
@@ -35,6 +36,9 @@ public class TblProductService { @@ -35,6 +36,9 @@ public class TblProductService {
35 private SearchServiceConfiger searchServiceConfiger; 36 private SearchServiceConfiger searchServiceConfiger;
36 37
37 public SearchApiResult search(Map<String, String> paramMap) throws Exception { 38 public SearchApiResult search(Map<String, String> paramMap) throws Exception {
  39 +
  40 + logger.info("[func=TblProductService.search][param={}][begin={}]", paramMap.toString());
  41 +
38 // 1、构造SearchParam 42 // 1、构造SearchParam
39 SearchParam searchParam = new SearchParam(); 43 SearchParam searchParam = new SearchParam();
40 searchParam.setQuery(QueryBuilders.matchAllQuery()); 44 searchParam.setQuery(QueryBuilders.matchAllQuery());