@@ -24,7 +24,7 @@ namespace MongoDB.Driver;
2424/// <summary>
2525/// Defines a vector index model using strongly-typed C# APIs.
2626/// </summary>
27- public sealed class CreateVectorIndexModel < TDocument > : CreateSearchIndexModel
27+ public sealed class CreateVectorSearchIndexModel < TDocument > : CreateSearchIndexModel
2828{
2929 /// <summary>
3030 /// The field containing the vectors to index.
@@ -62,15 +62,15 @@ public sealed class CreateVectorIndexModel<TDocument> : CreateSearchIndexModel
6262 public int ? HnswNumEdgeCandidates { get ; init ; }
6363
6464 /// <summary>
65- /// Initializes a new instance of the <see cref="CreateVectorIndexModel {TDocument}"/> class, passing the
65+ /// Initializes a new instance of the <see cref="CreateVectorSearchIndexModel {TDocument}"/> class, passing the
6666 /// required options for <see cref="VectorSimilarity"/> and the number of vector dimensions to the constructor.
6767 /// </summary>
6868 /// <param name="name">The index name.</param>
6969 /// <param name="field">The field containing the vectors to index.</param>
7070 /// <param name="similarity">The <see cref="VectorSimilarity"/> to use to search for top K-nearest neighbors.</param>
7171 /// <param name="dimensions">Number of vector dimensions that vector search enforces at index-time and query-time.</param>
7272 /// <param name="filterFields">Fields that may be used as filters in the vector query.</param>
73- public CreateVectorIndexModel (
73+ public CreateVectorSearchIndexModel (
7474 FieldDefinition < TDocument > field ,
7575 string name ,
7676 VectorSimilarity similarity ,
@@ -85,15 +85,15 @@ public CreateVectorIndexModel(
8585 }
8686
8787 /// <summary>
88- /// Initializes a new instance of the <see cref="CreateVectorIndexModel {TDocument}"/> class, passing the
88+ /// Initializes a new instance of the <see cref="CreateVectorSearchIndexModel {TDocument}"/> class, passing the
8989 /// required options for <see cref="VectorSimilarity"/> and the number of vector dimensions to the constructor.
9090 /// </summary>
9191 /// <param name="name">The index name.</param>
9292 /// <param name="field">An expression pointing to the field containing the vectors to index.</param>
9393 /// <param name="similarity">The <see cref="VectorSimilarity"/> to use to search for top K-nearest neighbors.</param>
9494 /// <param name="dimensions">Number of vector dimensions that vector search enforces at index-time and query-time.</param>
9595 /// <param name="filterFields">Expressions pointing to fields that may be used as filters in the vector query.</param>
96- public CreateVectorIndexModel (
96+ public CreateVectorSearchIndexModel (
9797 Expression < Func < TDocument , object > > field ,
9898 string name ,
9999 VectorSimilarity similarity ,
@@ -160,6 +160,6 @@ public BsonDocument Render(RenderArgs<TDocument> renderArgs)
160160 }
161161 }
162162
163- return new BsonDocument { { "fields" , BsonArray . Create ( fieldDocuments ) } } ;
163+ return new BsonDocument { { "fields" , new BsonArray ( fieldDocuments ) } } ;
164164 }
165165}
0 commit comments