milvus-logo
LFAI
< Docs
  • C#

GetIndexStateAsync()

Gets the state of an index.

Invocation

await collection.GetIndexStateAsync(fieldName, indexName = null, cancellationToken = default);

Parameters

ParameterDescriptionTypeRequired
fieldNameThe name of the field which has the index to get the state for.stringTrue
indexNameAn optional name of the index to get the state for.string?False
cancellationTokenThe token to monitor for cancellation requests. The default value is CancellationToken.None.CancellationTokenFalse

Return

The state of the index.