@@ -6,6 +6,7 @@ import { DocumentConventions } from "../Conventions/DocumentConventions.js";
6
6
import { IndexFieldOptions } from "./IndexFieldOptions.js" ;
7
7
import { IndexDeploymentMode } from "./IndexDeploymentMode.js" ;
8
8
import { AdditionalAssembly } from "./AdditionalAssembly.js" ;
9
+ import { FieldVectorOptions } from "../Queries/VectorSearch/VectorSearchOptions.js" ;
9
10
10
11
export abstract class AbstractIndexDefinitionBuilder < TIndexDefinition extends IndexDefinition > {
11
12
protected readonly _indexName : string ;
@@ -18,7 +19,7 @@ export abstract class AbstractIndexDefinitionBuilder<TIndexDefinition extends In
18
19
public suggestionsOptions : Set < string > ;
19
20
public termVectorsStrings : { [ key : string ] : FieldTermVector } ;
20
21
public spatialIndexesStrings : { [ key : string ] : SpatialOptions } ;
21
-
22
+ public vectorFieldStrings : { [ key : string ] : FieldVectorOptions } ;
22
23
public lockMode : IndexLockMode ;
23
24
public priority : IndexPriority ;
24
25
public state : IndexState ;
@@ -45,6 +46,8 @@ export abstract class AbstractIndexDefinitionBuilder<TIndexDefinition extends In
45
46
this . analyzersStrings = { } ;
46
47
this . termVectorsStrings = { } ;
47
48
this . spatialIndexesStrings = { } ;
49
+ this . vectorFieldStrings = { } ;
50
+
48
51
this . configuration = { } ;
49
52
}
50
53
@@ -78,6 +81,8 @@ export abstract class AbstractIndexDefinitionBuilder<TIndexDefinition extends In
78
81
( options , value ) => options . spatial = value ) ;
79
82
this . _applyValues ( indexDefinition , suggestions ,
80
83
( options , value ) => options . suggestions = value ) ;
84
+ this . _applyValues ( indexDefinition , this . vectorFieldStrings ,
85
+ ( options , value ) => options . vector = value ) ;
81
86
82
87
indexDefinition . additionalSources = this . additionalSources ;
83
88
indexDefinition . additionalAssemblies = this . additionalAssemblies ;
0 commit comments