From 7602f468a755c31fc3a00547fe53b3e694d5ae3e Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 5 Sep 2023 16:29:48 +0200 Subject: [PATCH] Remove unneeded milvus prefix from parameter names --- Milvus.Client/MilvusCollection.Index.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Milvus.Client/MilvusCollection.Index.cs b/Milvus.Client/MilvusCollection.Index.cs index f22513e..ba897bd 100644 --- a/Milvus.Client/MilvusCollection.Index.cs +++ b/Milvus.Client/MilvusCollection.Index.cs @@ -6,8 +6,8 @@ public partial class MilvusCollection /// Creates an index. /// /// The name of the field in the collection for which the index will be created. - /// The type of the index to be created. - /// + /// The type of the index to be created. + /// /// /// Extra parameters specific to each index type; consult the documentation for your index type for more details. /// @@ -17,8 +17,8 @@ public partial class MilvusCollection /// public async Task CreateIndexAsync( string fieldName, - IndexType? milvusIndexType = null, - SimilarityMetricType? milvusMetricType = null, + IndexType? indexType = null, + SimilarityMetricType? metricType = null, IDictionary? extraParams = null, string? indexName = null, CancellationToken cancellationToken = default) @@ -36,21 +36,21 @@ public async Task CreateIndexAsync( request.IndexName = indexName; } - if (milvusMetricType is not null) + if (metricType is not null) { request.ExtraParams.Add(new Grpc.KeyValuePair { Key = "metric_type", - Value = GetGrpcMetricType(milvusMetricType.Value) + Value = GetGrpcMetricType(metricType.Value) }); } - if (milvusIndexType is not null) + if (indexType is not null) { request.ExtraParams.Add(new Grpc.KeyValuePair { Key = "index_type", - Value = GetGrpcIndexType(milvusIndexType.Value) + Value = GetGrpcIndexType(indexType.Value) }); }