public async IAsyncEnumerable UpsertBatchAsync()

in Elastic.SemanticKernel.Connectors.Elasticsearch/ElasticsearchVectorStoreRecordCollection.cs [289:301]


    public async IAsyncEnumerable<string> UpsertBatchAsync(IEnumerable<TRecord> records, UpsertRecordOptions? options = null,
        [EnumeratorCancellation] CancellationToken cancellationToken = default)
    {
        // TODO: Use _bulk endpoint
        // TODO: Handle options

        Verify.NotNull(records);

        foreach (var record in records)
        {
            yield return await UpsertAsync(record, options, cancellationToken).ConfigureAwait(false);
        }
    }