milvus-logo

loadCollection()

This method loads the specified collection to memory (for search or query).

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.loadCollection(
  LoadCollectionReq
);

Parameters

LoadCollectionReq

ParameterDescriptionTypeRequired
collection_nameName of the collection to loadStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

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

Return

// loadCollection return
{ error_code: 'Success', reason: '' }