-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
component/kafkakind/bugIssues or changes related a bugIssues or changes related a bugstability-nightlystaleindicates no udpates for 30 daysindicates no udpates for 30 daystriage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
Is there an existing issue for this?
- I have searched the existing issues
Environment
- Milvus version: 2710eb3(2.5)
- Deployment mode(standalone or cluster):cluster
- MQ type(rocksmq, pulsar or kafka): kafka
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:Current Behavior
Expected to search 9 results out of 10 but failed.
2025-03-19T19:28:03Z {container="step-test"} @pytest.mark.tags(CaseLabel.L2)
2025-03-19T19:28:03Z {container="step-test"} def test_range_search_radius_range_filter_not_in_params(self):
2025-03-19T19:28:03Z {container="step-test"} """
2025-03-19T19:28:03Z {container="step-test"} target: test range search radius and range filter not in params
2025-03-19T19:28:03Z {container="step-test"} method: create connection, collection, insert and search
2025-03-19T19:28:03Z {container="step-test"} expected: search successfully as normal search
2025-03-19T19:28:03Z {container="step-test"} """
2025-03-19T19:28:03Z {container="step-test"} # 1. initialize with data
2025-03-19T19:28:03Z {container="step-test"} collection_w, _vectors, _, insert_ids, time_stamp = self.init_collection_general(
2025-03-19T19:28:03Z {container="step-test"} prefix, True, nb=10)[0:5]
2025-03-19T19:28:03Z {container="step-test"} # 2. get vectors that inserted into collection
2025-03-19T19:28:03Z {container="step-test"} vectors = np.array(_vectors[0]).tolist()
2025-03-19T19:28:03Z {container="step-test"} vectors = [vectors[i][-1] for i in range(default_nq)]
2025-03-19T19:28:03Z {container="step-test"} # 3. range search with L2
2025-03-19T19:28:03Z {container="step-test"} range_search_params = {"metric_type": "COSINE",
2025-03-19T19:28:03Z {container="step-test"} "radius": 0, "range_filter": 1}
2025-03-19T19:28:03Z {container="step-test"} > collection_w.search(vectors[:default_nq], default_search_field,
2025-03-19T19:28:03Z {container="step-test"} range_search_params, default_limit,
2025-03-19T19:28:03Z {container="step-test"} default_search_exp,
2025-03-19T19:28:03Z {container="step-test"} check_task=CheckTasks.check_search_results,
2025-03-19T19:28:03Z {container="step-test"} check_items={"nq": default_nq,
2025-03-19T19:28:03Z {container="step-test"} "ids": insert_ids,
2025-03-19T19:28:03Z {container="step-test"} "limit": default_limit})
2025-03-19T19:28:03Z {container="step-test"} [2025-03-19 18:37:32 - INFO - ci_test]: search_results_check: Numbers of query searched is correct (func_check.py:372)
2025-03-19T19:28:03Z {container="step-test"} [2025-03-19 18:37:32 - ERROR - ci_test]: search_results_check: limit(topK) searched (9) is not equal with expected (10) (func_check.py:387)
There are only 10 data in the collection, so Brute-force search should return all results.
Expected Behavior
pass
Steps To Reproduce
Milvus Log
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component/kafkakind/bugIssues or changes related a bugIssues or changes related a bugstability-nightlystaleindicates no udpates for 30 daysindicates no udpates for 30 daystriage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.