@@ -134,7 +134,7 @@ private static Map<String, float[]> populateTest(int n) throws IOException {
134134 private static void createTestCollection () throws IOException {
135135 client .collections .create (COLLECTION , cfg -> cfg
136136 .properties (Property .text ("category" ))
137- .vectors (Vectorizers .selfProvided (VECTOR_INDEX )));
137+ .vectorConfig (Vectorizers .selfProvided (VECTOR_INDEX )));
138138 }
139139
140140 @ Test
@@ -143,7 +143,7 @@ public void testNearText() throws IOException {
143143 client .collections .create (nsSongs ,
144144 col -> col
145145 .properties (Property .text ("title" ))
146- .vectors (Vectorizers .text2vecContextionary ()));
146+ .vectorConfig (Vectorizers .text2vecContextionary ()));
147147
148148 var songs = client .collections .use (nsSongs );
149149 var submarine = songs .data .insert (Map .of ("title" , "Yellow Submarine" ));
@@ -171,7 +171,7 @@ public void testNearText_groupBy() throws IOException {
171171 client .collections .create (nsArtists ,
172172 col -> col
173173 .properties (Property .text ("name" ))
174- .vectors (vectorizer ));
174+ .vectorConfig (vectorizer ));
175175
176176 var artists = client .collections .use (nsArtists );
177177 var beatles = artists .data .insert (Map .of ("name" , "Beatles" ));
@@ -182,7 +182,7 @@ public void testNearText_groupBy() throws IOException {
182182 col -> col
183183 .properties (Property .text ("title" ))
184184 .references (ReferenceProperty .to ("performedBy" , nsArtists ))
185- .vectors (vectorizer ));
185+ .vectorConfig (vectorizer ));
186186
187187 var songs = client .collections .use (nsSongs );
188188 songs .data .insert (Map .of ("title" , "Yellow Submarine" ),
@@ -209,7 +209,7 @@ public void testNearImage() throws IOException {
209209 .properties (
210210 Property .text ("breed" ),
211211 Property .blob ("img" ))
212- .vectors (Vectorizers .img2vecNeural (
212+ .vectorConfig (Vectorizers .img2vecNeural (
213213 i2v -> i2v .imageFields ("img" ))));
214214
215215 var cats = client .collections .use (nsCats );
@@ -391,7 +391,7 @@ public void testNearObject() throws IOException {
391391 client .collections .create (nsAnimals ,
392392 collection -> collection
393393 .properties (Property .text ("kind" ))
394- .vectors (Vectorizers .text2vecContextionary ()));
394+ .vectorConfig (Vectorizers .text2vecContextionary ()));
395395
396396 var animals = client .collections .use (nsAnimals );
397397
@@ -420,7 +420,7 @@ public void testHybrid() throws IOException {
420420 client .collections .create (nsHobbies ,
421421 collection -> collection
422422 .properties (Property .text ("name" ), Property .text ("description" ))
423- .vectors (Vectorizers .text2vecContextionary ()));
423+ .vectorConfig (Vectorizers .text2vecContextionary ()));
424424
425425 var hobbies = client .collections .use (nsHobbies );
426426
@@ -453,7 +453,7 @@ public void testBadRequest() throws IOException {
453453 client .collections .create (nsThings ,
454454 collection -> collection
455455 .properties (Property .text ("name" ))
456- .vectors (Vectorizers .text2vecContextionary ()));
456+ .vectorConfig (Vectorizers .text2vecContextionary ()));
457457
458458 var things = client .collections .use (nsThings );
459459 var balloon = things .data .insert (Map .of ("name" , "balloon" ));
@@ -470,7 +470,7 @@ public void testBadRequest_async() throws Throwable {
470470 async .collections .create (nsThings ,
471471 collection -> collection
472472 .properties (Property .text ("name" ))
473- .vectors (Vectorizers .text2vecContextionary ()))
473+ .vectorConfig (Vectorizers .text2vecContextionary ()))
474474 .join ();
475475
476476 var things = async .collections .use (nsThings );
0 commit comments