diff --git a/milvus/grpc/MilvusIndex.ts b/milvus/grpc/MilvusIndex.ts index 29c55a23..e1ce19da 100644 --- a/milvus/grpc/MilvusIndex.ts +++ b/milvus/grpc/MilvusIndex.ts @@ -183,7 +183,7 @@ export class Index extends Data { * @returns {Promise} A Promise that resolves to an array of strings representing the names of indexes associated with the specified collection. * @returns {Object} return.status - An object with properties 'error_code' (number) and 'reason' (string). * @returns {Array} return.string - index names - * + * * @example * ``` * const milvusClient = new MilvusClient(MILUVS_ADDRESS); @@ -208,6 +208,7 @@ export class Index extends Data { /** * Get the index building state. + * @deprecated * * @param {Object} data - An object with the following properties: * @param {string} data.collection_name - The name of the collection for which the index state is to be retrieved. @@ -229,6 +230,7 @@ export class Index extends Data { * console.log(res); * ``` */ + /* istanbul ignore next */ async getIndexState(data: GetIndexStateReq): Promise { checkCollectionName(data); const promise = await promisify( diff --git a/package.json b/package.json index c63b805d..f66c9f1c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@zilliz/milvus2-sdk-node", "author": "ued@zilliz.com", - "version": "2.4.4", - "milvusVersion": "v2.4.6", + "version": "2.4.5", + "milvusVersion": "v2.4.8", "main": "dist/milvus", "files": [ "dist" diff --git a/test/grpc/Index.spec.ts b/test/grpc/Index.spec.ts index 44eb1bce..83e0e593 100644 --- a/test/grpc/Index.spec.ts +++ b/test/grpc/Index.spec.ts @@ -354,14 +354,6 @@ describe(`Milvus Index API`, () => { expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); }); - it(`Get Index State with field name `, async () => { - const res = await milvusClient.getIndexState({ - collection_name: COLLECTION_NAME, - field_name: VECTOR_FIELD_NAME, - }); - expect(res.status.error_code).toEqual(ErrorCode.SUCCESS); - }); - it(`Get Index progress with index name`, async () => { const res = await milvusClient.getIndexBuildProgress({ collection_name: COLLECTION_NAME, @@ -386,7 +378,7 @@ describe(`Milvus Index API`, () => { }); expect(alter.error_code).toEqual(ErrorCode.SUCCESS); const params = describe.index_descriptions[0].params; - expect(findKeyValue(params, 'mmap.enabled')).toEqual("true"); + expect(findKeyValue(params, 'mmap.enabled')).toEqual('true'); // console.log('describe', describe.index_descriptions[0].params); }); diff --git a/test/grpc/PartitionKey.spec.ts b/test/grpc/PartitionKey.spec.ts index f08fe5cd..aa4f53cd 100644 --- a/test/grpc/PartitionKey.spec.ts +++ b/test/grpc/PartitionKey.spec.ts @@ -196,7 +196,7 @@ describe(`Partition key API`, () => { output_fields: ['varChar'], }); - expect(res.status.error_code).toEqual(ErrorCode.UnexpectedError); + expect(res.status.error_code).toEqual(ErrorCode.IllegalArgument); }); it(`Search Collection should be successful`, async () => {