Skip to content

Commit

Permalink
Bugfix: MetricType was not initialized in io.milvus.orm.iterator.Sear…
Browse files Browse the repository at this point in the history
…chIterator#executeNextSearch (milvus-io#881)
  • Loading branch information
Piercarlo Slavazza committed May 7, 2024
1 parent 5d81e21 commit db51a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/milvus/orm/iterator/SearchIterator.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ private SearchResultsWrapper executeNextSearch(Map<String, Object> 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())) {
Expand Down

0 comments on commit db51a2d

Please sign in to comment.