package com.kidgrow.searchcenter.client.feign;
|
|
import com.kidgrow.common.constant.ServiceNameConstants;
|
import com.kidgrow.searchcenter.client.feign.fallback.SearchServiceFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import java.util.Map;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 搜索客户端FeignClient接口<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/24 12:13 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, decode404 = true)
|
public interface AggregationService {
|
/**
|
* 查询文档列表
|
* @param indexName 索引名
|
* @param routing es的路由
|
*/
|
@GetMapping(value = "/agg/requestStat/{indexName}/{routing}")
|
Map<String, Object> requestStatAgg(@PathVariable("indexName") String indexName, @PathVariable("routing") String routing);
|
}
|