1515import io .weaviate .client6 .v1 .api .collections .query .NearThermal ;
1616import io .weaviate .client6 .v1 .api .collections .query .NearVector ;
1717import io .weaviate .client6 .v1 .api .collections .query .NearVideo ;
18+ import io .weaviate .client6 .v1 .api .collections .query .Target ;
1819import io .weaviate .client6 .v1 .internal .ObjectBuilder ;
1920import io .weaviate .client6 .v1 .internal .grpc .GrpcTransport ;
2021import io .weaviate .client6 .v1 .internal .orm .CollectionDescriptor ;
@@ -197,7 +198,7 @@ public GroupedResponseT hybrid(Hybrid filter, Function<Aggregation.Builder, Obje
197198 * @see AggregateResponse
198199 */
199200 public ResponseT nearVector (float [] vector , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
200- return nearVector (NearVector .of (vector ), fn );
201+ return nearVector (NearVector .of (Target . vector ( vector ) ), fn );
201202 }
202203
203204 /**
@@ -214,7 +215,7 @@ public ResponseT nearVector(float[] vector, Function<Aggregation.Builder, Object
214215 */
215216 public ResponseT nearVector (float [] vector , Function <NearVector .Builder , ObjectBuilder <NearVector >> nv ,
216217 Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
217- return nearVector (NearVector .of (vector , nv ), fn );
218+ return nearVector (NearVector .of (Target . vector ( vector ) , nv ), fn );
218219 }
219220
220221 /**
@@ -248,7 +249,7 @@ public ResponseT nearVector(NearVector filter, Function<Aggregation.Builder, Obj
248249 */
249250 public GroupedResponseT nearVector (float [] vector , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ,
250251 GroupBy groupBy ) {
251- return nearVector (NearVector .of (vector ), fn , groupBy );
252+ return nearVector (NearVector .of (Target . vector ( vector ) ), fn , groupBy );
252253 }
253254
254255 /**
@@ -268,7 +269,7 @@ public GroupedResponseT nearVector(float[] vector, Function<Aggregation.Builder,
268269 */
269270 public GroupedResponseT nearVector (float [] vector , Function <NearVector .Builder , ObjectBuilder <NearVector >> nv ,
270271 Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn , GroupBy groupBy ) {
271- return nearVector (NearVector .of (vector , nv ), fn , groupBy );
272+ return nearVector (NearVector .of (Target . vector ( vector ) , nv ), fn , groupBy );
272273 }
273274
274275 /**
@@ -426,7 +427,7 @@ public ResponseT nearText(String text, Function<Aggregation.Builder, ObjectBuild
426427 * @see AggregateResponse
427428 */
428429 public ResponseT nearText (List <String > concepts , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
429- return nearText (NearText .of (concepts ), fn );
430+ return nearText (NearText .of (Target . text ( concepts ) ), fn );
430431 }
431432
432433 /**
@@ -443,7 +444,7 @@ public ResponseT nearText(List<String> concepts, Function<Aggregation.Builder, O
443444 */
444445 public ResponseT nearText (String text , Function <NearText .Builder , ObjectBuilder <NearText >> nt ,
445446 Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
446- return nearText (NearText .of (text , nt ), fn );
447+ return nearText (NearText .of (Target . text ( List . of ( text )) , nt ), fn );
447448 }
448449
449450 /**
@@ -460,7 +461,7 @@ public ResponseT nearText(String text, Function<NearText.Builder, ObjectBuilder<
460461 */
461462 public ResponseT nearText (List <String > concepts , Function <NearText .Builder , ObjectBuilder <NearText >> nt ,
462463 Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ) {
463- return nearText (NearText .of (concepts , nt ), fn );
464+ return nearText (NearText .of (Target . text ( concepts ) , nt ), fn );
464465 }
465466
466467 /**
@@ -512,7 +513,7 @@ public GroupedResponseT nearText(String text, Function<Aggregation.Builder, Obje
512513 */
513514 public GroupedResponseT nearText (List <String > concepts , Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn ,
514515 GroupBy groupBy ) {
515- return nearText (NearText .of (concepts ), fn , groupBy );
516+ return nearText (NearText .of (Target . text ( concepts ) ), fn , groupBy );
516517 }
517518
518519 /**
@@ -552,7 +553,7 @@ public GroupedResponseT nearText(String text, Function<NearText.Builder, ObjectB
552553 */
553554 public GroupedResponseT nearText (List <String > concepts , Function <NearText .Builder , ObjectBuilder <NearText >> nt ,
554555 Function <Aggregation .Builder , ObjectBuilder <Aggregation >> fn , GroupBy groupBy ) {
555- return nearText (NearText .of (concepts , nt ), fn , groupBy );
556+ return nearText (NearText .of (Target . text ( concepts ) , nt ), fn , groupBy );
556557 }
557558
558559 /**
0 commit comments