@Deprecated
    default void add(ActionRequest... actionRequests) {
        for (ActionRequest actionRequest : actionRequests) {
            if (actionRequest instanceof IndexRequest) {
                add((IndexRequest) actionRequest);
            } else if (actionRequest instanceof DeleteRequest) {
                add((DeleteRequest) actionRequest);
            } else if (actionRequest instanceof UpdateRequest) {
                add((UpdateRequest) actionRequest);
            } else {
                throw new IllegalArgumentException(
                        "RequestIndexer only supports Index, Delete and Update requests");
            }
        }
    }
Add multiple {@link ActionRequest} to the indexer to prepare for sending requests to
Elasticsearch.

@param actionRequests The multiple {@link ActionRequest} to add.
@deprecated use the {@link DeleteRequest}, {@link IndexRequest} or {@link UpdateRequest}
inlong-sort/sort-flink/sort-flink-v1.18/sort-connectors/elasticsearch-base/src/main/java/org/apache/inlong/sort/elasticsearch/RequestIndexer.java