@@ -43,8 +43,10 @@ public class DenseVectorFieldTypeIT extends AbstractEsqlIntegTestCase {
4343 .map (v -> v .getName ().toLowerCase (Locale .ROOT ))
4444 .collect (Collectors .toSet ());
4545
46- public static final Set <String > NON_QUANTIZED_DENSE_VECTOR_INDEX_TYPES = Set .of ("hnsw" , "flat" );
47-
46+ public static final Set <String > NON_QUANTIZED_DENSE_VECTOR_INDEX_TYPES = Arrays .stream (DenseVectorFieldMapper .VectorIndexType .values ())
47+ .filter (t -> t .isEnabled () && t .isQuantized () == false )
48+ .map (v -> v .getName ().toLowerCase (Locale .ROOT ))
49+ .collect (Collectors .toSet ());
4850
4951 public static final float DELTA = 1e-7F ;
5052
@@ -58,15 +60,15 @@ public static Iterable<Object[]> parameters() throws Exception {
5860 List <Object []> params = new ArrayList <>();
5961
6062 for (ElementType elementType : List .of (ElementType .BYTE , ElementType .FLOAT )) {
61- // Test all similarities
63+ // Test all similarities
6264 for (DenseVectorFieldMapper .VectorSimilarity similarity : DenseVectorFieldMapper .VectorSimilarity .values ()) {
63- params .add (new Object [] { ElementType . FLOAT , similarity , true , false });
65+ params .add (new Object [] { elementType , similarity , true , false });
6466 }
6567
6668 // No indexing
67- params .add (new Object [] { ElementType . FLOAT , null , false , false });
69+ params .add (new Object [] { elementType , null , false , false });
6870 // No indexing, synthetic source
69- params .add (new Object [] { ElementType . FLOAT , null , false , true });
71+ params .add (new Object [] { elementType , null , false , true });
7072 }
7173
7274 return params ;
0 commit comments