diff --git a/Milvus.Client.Tests/SearchQueryTests.cs b/Milvus.Client.Tests/SearchQueryTests.cs index 99d50aa..7ad50d6 100644 --- a/Milvus.Client.Tests/SearchQueryTests.cs +++ b/Milvus.Client.Tests/SearchQueryTests.cs @@ -241,6 +241,29 @@ public async Task Search_with_offset() Assert.Collection(results.Limits, l => Assert.Equal(2, l)); } + [Fact] + public async Task Search_with_range_search() + { + var results = await Collection.SearchAsync( + "float_vector", + new ReadOnlyMemory[] { new[] { 0.1f, 0.2f } }, + SimilarityMetricType.L2, + limit: 5, + new() + { + ExtraParameters = + { + { "radius", "60" }, + { "range_filter", "10" } + } + }); + + Assert.Collection( + results.Ids.LongIds!.Order(), + id => Assert.Equal(2, id), + id => Assert.Equal(3, id)); + } + [Fact] public async Task Search_with_no_results() {