public async Task CreateCollectionIfNotExistsAsync()

in Elastic.SemanticKernel.Connectors.Elasticsearch/ElasticsearchVectorStoreRecordCollection.cs [180:186]


    public async Task CreateCollectionIfNotExistsAsync(CancellationToken cancellationToken = default)
    {
        if (!await CollectionExistsAsync(cancellationToken).ConfigureAwait(false))
        {
            await CreateCollectionAsync(cancellationToken).ConfigureAwait(false);
        }
    }