Authored by wangnan9279

tblproduct索引用表数据重建

... ... @@ -16,17 +16,18 @@ import org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation;
import org.elasticsearch.search.sort.SortBuilder;
import org.elasticsearch.search.sort.SortBuilders;
import org.elasticsearch.search.sort.SortOrder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
@Service
public class TblProductService {
private static final Logger logger = LoggerFactory.getLogger(TblProductService.class);
@Autowired
private SearchCommonService searchCommonService;
@Autowired
... ... @@ -35,6 +36,9 @@ public class TblProductService {
private SearchServiceConfiger searchServiceConfiger;
public SearchApiResult search(Map<String, String> paramMap) throws Exception {
logger.info("[func=TblProductService.search][param={}][begin={}]", paramMap.toString());
// 1、构造SearchParam
SearchParam searchParam = new SearchParam();
searchParam.setQuery(QueryBuilders.matchAllQuery());
... ...