milvus-logo
LFAI
< Docs
  • Node

getIndexBuildProgress()

This method monitors the index building progress and displays the total number of rows as well as the number of indexed rows.

This method has been deprecated since version 2.2.0, you can use getIndexState instead.

Example

import { MilvusClient } from "@zilliz/milvus2-sdk-node";

new milvusClient(MILUVS_ADDRESS).getIndexBuildProgress({
  collection_name: "my_collection",
});

Response

// getIndexBuildProgress returns
{
  status: { error_code: 'Success', reason: '' },
  indexed_rows: '0',
  total_rows: '0'
}

Parameters

ParametersDescriptionType
collection_nameCollection nameString
field_name?Name of the field to build index onString
index_name?Name of the index to checkString
timeout?This parameter is used to specify the length of time, in milliseconds, that the RPC (Remote Procedure Call) is allowed to run. If no value is provided, the default is undefined.Number
Feedback

Was this page helpful?