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 (#881) (#883)

Signed-off-by: PiercarloSlavazza <[email protected]>
Co-authored-by: Piercarlo Slavazza <[email protected]>
  • Loading branch information
PiercarloSlavazza and Piercarlo Slavazza authored May 9, 2024
1 parent ba850d9 commit a6eddb9
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 a6eddb9

Please sign in to comment.