diff --git a/src/main/java/io/milvus/orm/iterator/SearchIterator.java b/src/main/java/io/milvus/orm/iterator/SearchIterator.java index 226da3cca..6272183e3 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())) {