Skip to content

Commit 640408e

Browse files
authored
Fix DenseVectorFieldMapperTests.testMeta (#145365) (#145454)
1 parent 51fad33 commit 640408e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void indexMapping(XContentBuilder b, IndexVersion indexVersion) throws I
131131
if ((indexVersion.onOrAfter(DenseVectorFieldMapper.DEFAULT_TO_INT8)
132132
|| indexVersion.onOrAfter(DenseVectorFieldMapper.DEFAULT_TO_BBQ))
133133
&& indexed
134-
&& elementType.equals(ElementType.FLOAT)
134+
&& DenseVectorFieldMapperTestUtils.elementTypesWithDefaultIndexOptions(indexVersion).contains(elementType)
135135
&& indexOptionsSet == false) {
136136
if (indexVersion.onOrAfter(DenseVectorFieldMapper.DEFAULT_TO_BBQ)
137137
&& dims >= DenseVectorFieldMapper.BBQ_DIMS_DEFAULT_THRESHOLD) {

0 commit comments

Comments
 (0)