getIndexState()
This method checks if the index building is completed or not.
Invocation
new milvusClient(MILUVS_ADDRESS).collectionManager.getIndexState(GetIndexStateReq);
Parameter
GetIndexStateReq
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Collection name | String | True |
field_name | Name of the field to build index on | String | False |
index_name | Name of the index to check | String | False |
Example
new milvusClient(MILUVS_ADDRESS).collectionManager.getIndexState({
collection_name: 'my_collection',
});
Return
// getIndexState return
{
status: { error_code: 'Success', reason: '' },
state: 'Finished',
fail_reason: ''
}