Skip to content

Commit

Permalink
allowing search iterator on sparse float vector field
Browse files Browse the repository at this point in the history
Signed-off-by: Buqian Zheng <[email protected]>
  • Loading branch information
zhengbuqian committed May 24, 2024
1 parent 473f62f commit bdf367b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pymilvus/orm/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit bdf367b

Please sign in to comment.