public void addNotExistFields(String indexName, List<ElasticsearchFieldInfo> fieldInfos) throws Exception {
        List<ElasticsearchFieldInfo> notExistFieldInfos = new ArrayList<>();
        Map<String, ElasticsearchFieldInfo> mappings = getMappingMap(indexName);
        for (ElasticsearchFieldInfo fieldInfo : fieldInfos) {
            if (!mappings.containsKey(fieldInfo.getFieldName())) {
                notExistFieldInfos.add(fieldInfo);
            }
        }
        if (!notExistFieldInfos.isEmpty()) {
            addFields(indexName, notExistFieldInfos);
        }
    }
Add not exist fields by REST API.

@param indexName elasticsearch index name
@param fieldInfos elasticsearch field infos
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/es/ElasticsearchApi.java