milvus-logo
LFAI
< Docs
  • Go

GetIndexBuildProgress()

This method gets the building progress of the specified index.

Invocation

client.GetIndexBuildProgress(ctx, collName, fieldName)

Parameters

ParameterDescriptionType
ctxContext to control API invocation processcontext.Context
collNameName of the collection to describe index building progressString
fieldNameName of the field to describe index building progressString

Return

  • total: INT64 number that describes the total records count to build index on.

  • index: INT64 number that describe the indexed records count.

Errors

err: error in the process (if any). Possible errors are listed below:

  • ErrClientNotReady, error that the client is not connected.

  • ErrCollectionNotExists, error that collection with the specified name does not exist.

  • error that the specified field is not valid.

  • error that API invocation failed.

Example

indexProgress, err := milvusClient.GetIndexBuildProgress(
  context.Background(),
  "book",
  "book_intro",
)
if err != nil {
  log.Fatal("fail to get index building progress:", err.Error())
}

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?