pymilvus icon indicating copy to clipboard operation
pymilvus copied to clipboard

[QUESTION]: 使用search方法时,output_fields参数无效

Open LiAI-tech opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What is your question?

我在collection里定义了字符串类型的字段,向量检索时希望将此字段的值一并返回,查询时不报错,但返回结果中只有ids和distance两个字段

Anything else?

results = collection.search( data=[[0.1, 0.2]], anns_field="book_intro", param=search_params, output_fields = ["book_id", "book_name"], limit=10, expr=None, consistency_level="Strong" )

LiAI-tech avatar Sep 22 '22 09:09 LiAI-tech