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)

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

Please sign in to comment.