diff --git a/src/main/java/io/milvus/v2/service/vector/VectorService.java b/src/main/java/io/milvus/v2/service/vector/VectorService.java index 33f0c2e2c..71157b7d9 100644 --- a/src/main/java/io/milvus/v2/service/vector/VectorService.java +++ b/src/main/java/io/milvus/v2/service/vector/VectorService.java @@ -178,6 +178,7 @@ public SearchResp search(MilvusServiceGrpc.MilvusServiceBlockingStub blockingStu return SearchResp.builder() .searchResults(convertUtils.getEntities(response)) + .recalls(response.getResults().getRecallsList()) .build(); } @@ -194,6 +195,7 @@ public SearchResp hybridSearch(MilvusServiceGrpc.MilvusServiceBlockingStub block return SearchResp.builder() .searchResults(convertUtils.getEntities(response)) + .recalls(response.getResults().getRecallsList()) .build(); } diff --git a/src/main/java/io/milvus/v2/service/vector/response/SearchResp.java b/src/main/java/io/milvus/v2/service/vector/response/SearchResp.java index efe7b8197..a60c68811 100644 --- a/src/main/java/io/milvus/v2/service/vector/response/SearchResp.java +++ b/src/main/java/io/milvus/v2/service/vector/response/SearchResp.java @@ -29,6 +29,7 @@ @SuperBuilder public class SearchResp { private List> searchResults; + private List recalls; @Data @SuperBuilder diff --git a/src/main/milvus-proto b/src/main/milvus-proto index a1c2ac2fd..7f744ed2a 160000 --- a/src/main/milvus-proto +++ b/src/main/milvus-proto @@ -1 +1 @@ -Subproject commit a1c2ac2fd2c12e0e6ff73ada3f260966f1cb65e0 +Subproject commit 7f744ed2ad119db58a53d82aeaa61142a0213b72