in Elastic.SemanticKernel.Connectors.Elasticsearch/ElasticsearchVectorStoreRecordCollection.cs [219:237]
public async IAsyncEnumerable<TRecord> GetBatchAsync(IEnumerable<string> keys, GetRecordOptions? options = null,
[EnumeratorCancellation] CancellationToken cancellationToken = default)
{
// TODO: Use mget endpoint
// TODO: Handle options
Verify.NotNull(keys);
foreach (var key in keys)
{
var record = await GetAsync(key, options, cancellationToken).ConfigureAwait(false);
if (record is null)
{
continue;
}
yield return record;
}
}