
package com.tmerclub.cloud.search.manager;

import org.elasticsearch.client.RestHighLevelClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author tmerclub
 * @date 2020/11/16
 */
@Component
public class OrderScrollSearchManager {

    private static final Logger log = LoggerFactory.getLogger(OrderScrollSearchManager.class);

    /** 最大分页数 */
    private static final Integer MAX_PAGE_SIZE = 5000;


    @Autowired
    private RestHighLevelClient restHighLevelClient;


//    /**
//     * 通过搜索信息分页搜索es数据的信息
//     *
//     * @param orderSearchDTO 订单搜索条件
//     * @return 搜索结果
//     */
//    public List<EsOrderVO> listSearchResult(OrderSearchDTO orderSearchDTO) {
//        // 处理支付类型
//        if(Objects.nonNull(orderSearchDTO.getPayType())) {
//            addPayTypeList(orderSearchDTO);
//        }
//        // 查询订单数据
//        SearchResponse response = searchResult(orderSearchDTO);
//        // 处理响应的数据
//        List<EsOrderVO> result = getEsOrderBOList(response);
//        return result;
//
}
