milvus-logo
Star
0
Forks
0
Get Started

query()

Conducts a vector query.

Invocation

new milvusClient(MILUVS_ADDRESS).dataManager.query(QueryReq);

Parameter

QueryReq

ParameterDescriptiontyperequired
collection_nameCollection nameStringtrue
output_fieldsVector or scalar field to be returnedString[]true
expr(optional)Scalar field filter expressionStringfalse
partitions_names(optional)Array of partition namesstring[]false

Example

new milvusClient(MILUVS_ADDRESS).dataManager.query({
  collection_name: 'my_collection',
  expr: "age in [1,2,3,4,5,6,7,8]",
  output_fields: ["age"],
});

Return

// query return