From 733ca656e017ef85e40b3e2e80f64a889b4943d9 Mon Sep 17 00:00:00 2001 From: Piercarlo Slavazza Date: Tue, 7 May 2024 16:51:58 +0200 Subject: [PATCH] Bugfix: MetricType was not initialized in io.milvus.orm.iterator.SearchIterator#executeNextSearch (#881) Signed-off-by: PiercarloSlavazza --- src/main/java/io/milvus/orm/iterator/SearchIterator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/milvus/orm/iterator/SearchIterator.java b/src/main/java/io/milvus/orm/iterator/SearchIterator.java index 2b886ff10..d92478881 100644 --- a/src/main/java/io/milvus/orm/iterator/SearchIterator.java +++ b/src/main/java/io/milvus/orm/iterator/SearchIterator.java @@ -229,6 +229,7 @@ private SearchResultsWrapper executeNextSearch(Map params, Strin .withOutFields(searchIteratorParam.getOutFields()) .withRoundDecimal(searchIteratorParam.getRoundDecimal()) .withParams(JacksonUtils.toJsonString(params)) + .withMetricType(MetricType.valueOf(searchIteratorParam.getMetricType())) .withIgnoreGrowing(searchIteratorParam.isIgnoreGrowing()); if (!StringUtils.isNullOrEmpty(searchIteratorParam.getGroupByFieldName())) {