应用 milvus 的 python client sdk pymilvus
因为很久以前应用 pymilvus 的时候,是不反对在 search 获取标量字段的,而是须要通过 pk + query 接口获取
然而听过在 pymilvus2.1+(蕴含 2.1)的版本中,曾经能够应用 search 获取标量了
2022-11-25 00:14:54.517 | DEBUG | testing.test_milvus:test_003_search:169 - id: 437549830266159482, distance: 38.0, entity: {'company_id': 1, 'id': 437549830266159482, 'meta_id': 2},
2022-11-25 00:14:54.517 | DEBUG | testing.test_milvus:test_003_search:169 - id: 437549830266159541, distance: 38.0, entity: {'company_id': 1, 'id': 437549830266159541, 'meta_id': 3},