@@ -473,4 +473,87 @@ describe('FT.CREATE', () => {
473473      'OK' 
474474    ) ; 
475475  } ,  GLOBAL . SERVERS . OPEN ) ; 
476+ 
477+   testUtils . testWithClientIfVersionWithinRange ( [ [ 7 ] ,  'LATEST' ] ,  'client.ft.create vector types floats' ,  async  client  =>  { 
478+     assert . equal ( 
479+       await  client . ft . create ( "index_float32" ,  { 
480+         field : { 
481+           ALGORITHM : "FLAT" , 
482+           TYPE : "FLOAT32" , 
483+           DIM : 1 , 
484+           DISTANCE_METRIC : 'COSINE' , 
485+           type : 'VECTOR' 
486+         } , 
487+       } ) , 
488+       "OK" 
489+     ) ; 
490+ 
491+     assert . equal ( 
492+       await  client . ft . create ( "index_float64" ,  { 
493+         field : { 
494+           ALGORITHM : "FLAT" , 
495+           TYPE : "FLOAT64" , 
496+           DIM : 1 , 
497+           DISTANCE_METRIC : 'COSINE' , 
498+           type : 'VECTOR' 
499+         } , 
500+       } ) , 
501+       "OK" 
502+     ) ; 
503+ 
504+     assert . equal ( 
505+       await  client . ft . create ( "index_float16" ,  { 
506+         field : { 
507+           ALGORITHM : "FLAT" , 
508+           TYPE : "FLOAT16" , 
509+           DIM : 1 , 
510+           DISTANCE_METRIC : 'COSINE' , 
511+           type : 'VECTOR' 
512+         } , 
513+       } ) , 
514+       "OK" 
515+     ) ; 
516+ 
517+     assert . equal ( 
518+       await  client . ft . create ( "index_bloat16" ,  { 
519+         field : { 
520+           ALGORITHM : "FLAT" , 
521+           TYPE : "BFLOAT16" , 
522+           DIM : 1 , 
523+           DISTANCE_METRIC : 'COSINE' , 
524+           type : 'VECTOR' 
525+         } , 
526+       } ) , 
527+       "OK" 
528+     ) ; 
529+   } ,  GLOBAL . SERVERS . OPEN ) ; 
530+ 
531+ 
532+   testUtils . testWithClientIfVersionWithinRange ( [ [ 8 ] ,  'LATEST' ] ,  'client.ft.create vector types ints' ,  async  client  =>  { 
533+     assert . equal ( 
534+       await  client . ft . create ( "index_int8" ,  { 
535+         field : { 
536+           ALGORITHM : "FLAT" , 
537+           TYPE : "INT8" , 
538+           DIM : 1 , 
539+           DISTANCE_METRIC : 'COSINE' , 
540+           type : 'VECTOR' 
541+         } , 
542+       } ) , 
543+       "OK" 
544+     ) ; 
545+ 
546+     assert . equal ( 
547+       await  client . ft . create ( "index_uint8" ,  { 
548+         field : { 
549+           ALGORITHM : "FLAT" , 
550+           TYPE : "UINT8" , 
551+           DIM : 1 , 
552+           DISTANCE_METRIC : 'COSINE' , 
553+           type : 'VECTOR' 
554+         } , 
555+       } ) , 
556+       "OK" 
557+     ) ; 
558+   } ,  GLOBAL . SERVERS . OPEN ) ; 
476559} ) ; 
0 commit comments