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)
});
}