VectorIndexDefinition<T>.WithVectorIndexShardKey(String[]) Method

Definition

Configures the vector index shard key for the current VectorIndexPath definition.

public Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<T> WithVectorIndexShardKey(string[] vectorIndexShardKey);
member this.WithVectorIndexShardKey : string[] -> Microsoft.Azure.Cosmos.Fluent.VectorIndexDefinition<'T>
Public Function WithVectorIndexShardKey (vectorIndexShardKey As String()) As VectorIndexDefinition(Of T)

Parameters

vectorIndexShardKey
String[]

A string array containing the shard keys used for partitioning the vector indexes. This is an optional parameter and applies to index types DiskANN and quantizedFlat.

Returns

An instance of the current VectorIndexDefinition<T>.

Applies to