|
@@ -4,7 +4,7 @@ export const getCreateIndexJSCode = (params: CreateIndexCodeParam) => {
|
|
const { collectionName, fieldName, extraParams } = params;
|
|
const { collectionName, fieldName, extraParams } = params;
|
|
|
|
|
|
const jsCode = `import { MilvusClient } from '@zilliz/milvus2-sdk-node';
|
|
const jsCode = `import { MilvusClient } from '@zilliz/milvus2-sdk-node';
|
|
-const client = new MilvusClient(milvus_address)
|
|
|
|
|
|
+const client = new MilvusClient(milvus_address);
|
|
|
|
|
|
client.indexManager.createIndex({
|
|
client.indexManager.createIndex({
|
|
collection_name: '${collectionName}',
|
|
collection_name: '${collectionName}',
|