Share via


CosmosIndexExtensions.GetVectorIndexType(IReadOnlyIndex) Method

Definition

Returns the vector index type to use, such as "flat", "diskANN", or "quantizedFlat". See Vector Search in Azure Cosmos DB for NoSQL for more information.

public static Microsoft.Azure.Cosmos.VectorIndexType? GetVectorIndexType(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index);
static member GetVectorIndexType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex -> Nullable<Microsoft.Azure.Cosmos.VectorIndexType>
<Extension()>
Public Function GetVectorIndexType (index As IReadOnlyIndex) As Nullable(Of VectorIndexType)

Parameters

index
IReadOnlyIndex

The index.

Returns

The index type to use, or null if none is set.

Applies to