class ESUtils {

    public static Map<String, String> getDocumentForId(String index, String targetType, String _id) throws Exception {
        String url = ESUtils.getEsUrl();
        Map<String, Object> filter = new HashMap<>();
        filter.put("_id", _id);
        List<String> fields = new ArrayList<String>();
        List<Map<String, String>> details = getDataFromES(url, index.toLowerCase(), targetType.toLowerCase(), filter,
                null, null, fields, 0, 100);
        if (details != null && !details.isEmpty()) {
            return details.get(0);
        } else {
            return new HashMap<>();
        }
    }

}