milvus-logo
Star
0
Forks
0
快速开始

insert()

Insert data into collection.

Invocation

new milvusClient(MILUVS_ADDRESS).dataManager.insert(InsertReq);

Parameter

getQuerySegmentInfoReq

ParameterDescriptiontyperequired
collection_nameCollection nameStringtrue
partition_name(optional)partition nameStringfalse
fields_datavector data{ [x: string]: any }[]false
hash_keys(optional)The hash value depends on the primary keyNumber[]false

note

If the field type is binary, the vector data length needs to be dimension / 8

Example

new milvusClient(MILUVS_ADDRESS).dataManager.insert({
  collection_name: COLLECTION_NAME,
  fields_data: [{
    vector_field: [1,2,2,4],
    scalar_field: 1
  }]
});

Return

// getQuerySegmentInfo return