public JsonObject search(String indexName, JsonObject request) throws Exception {
        LOG.info("get es search es index:{} request:{}", indexName, request.toString());
        final String url = esConfig.getOneHttpUrl() + InlongConstants.SLASH + indexName + "/_search";
        return HttpUtils.request(esConfig.getRestClient(), url, HttpMethod.POST, request.toString(), getHttpHeaders(),
                JsonObject.class);
    }
Search.

@param indexName The index name
@param request The request json
@return the elasticsearch seqrch result
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchApi.java