From bdf367b16b9d76f2549f55b213bb36b1fa18bce8 Mon Sep 17 00:00:00 2001 From: Buqian Zheng Date: Fri, 24 May 2024 10:09:37 +0800 Subject: [PATCH] allowing search iterator on sparse float vector field Signed-off-by: Buqian Zheng --- pymilvus/orm/collection.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 5239d4739..2c593c45b 100644 --- a/pymilvus/orm/collection.py +++ b/pymilvus/orm/collection.py @@ -16,7 +16,7 @@ import pandas as pd -from pymilvus.client import entity_helper, utils +from pymilvus.client import utils from pymilvus.client.abstract import BaseRanker, SearchResult from pymilvus.client.constants import DEFAULT_CONSISTENCY_LEVEL from pymilvus.client.types import ( @@ -969,10 +969,6 @@ def search_iterator( round_decimal: int = -1, **kwargs, ): - if entity_helper.entity_is_sparse_matrix(data): - # search iterator is based on range_search, which is not yet supported for sparse. - raise DataTypeNotSupportException(message=ExceptionsMessage.DataTypeNotSupport) - if expr is not None and not isinstance(expr, str): raise DataTypeNotMatchException(message=ExceptionsMessage.ExprType % type(expr)) return SearchIterator(