Skip to content

Commit

Permalink
Rename search_with_expression to search (#749)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangyu Wang <[email protected]>
  • Loading branch information
Xiangyu Wang authored Oct 9, 2021
1 parent 0b08539 commit 64a0a7b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pymilvus/client/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,15 +606,9 @@ def _total_search(self, collection_name, query_entities, partition_names=None, f
kwargs["round_decimal"] = round_decimal
return self._execute_search_requests([request], timeout, **kwargs)

@error_handler(None)
def search(self, collection_name, query_entities, partition_names=None, fields=None, timeout=None, round_decimal=-1, **kwargs):
if kwargs.get("_deploy_mode", DeployMode.Distributed) == DeployMode.StandAlone:
return self._total_search(collection_name, query_entities, partition_names, fields, timeout, round_decimal, **kwargs)
return self._batch_search(collection_name, query_entities, partition_names, fields, timeout, round_decimal, **kwargs)

@error_handler(None)
@check_has_collection
def search_with_expression(self, collection_name, data, anns_field, param, limit,
def search(self, collection_name, data, anns_field, param, limit,
expression=None, partition_names=None, output_fields=None,
timeout=None, round_decimal=-1, **kwargs):
_kwargs = copy.deepcopy(kwargs)
Expand Down

0 comments on commit 64a0a7b

Please sign in to comment.