class ESRichClientImp implements ESClient {

    @Override
    public ESResponse searchScroll(SearchScrollRequest searchScrollRequest) throws IOException, JSONException
    {
        SearchResponse response = rhlclient.searchScroll(searchScrollRequest);
        LOGGER.debug("response={}", CommonUtil.removeEscapingCharacters(response.toString()));
        Map<String, Object> map = QueryUtil.toMap(QueryUtil.extractAggregationValue(response));
        return new ESResponse(response, map);
    }

    public  ESRichClientImp(Properties properties);
    public  ESRichClientImp(RestHighLevelClient rhlclient);

}