Skip to content

Commit ad1841b

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 9385d84 commit ad1841b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,9 @@ public boolean updatableTo(DenseVectorIndexOptions update) {
20492049
@Override
20502050
boolean doEquals(DenseVectorIndexOptions other) {
20512051
BBQHnswIndexOptions that = (BBQHnswIndexOptions) other;
2052-
return m == that.m && efConstruction == that.efConstruction && Objects.equals(rescoreVector, that.rescoreVector)
2052+
return m == that.m
2053+
&& efConstruction == that.efConstruction
2054+
&& Objects.equals(rescoreVector, that.rescoreVector)
20532055
&& directRawVectorReads == that.directRawVectorReads;
20542056
}
20552057

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ private DenseVectorFieldMapper.DenseVectorIndexOptions randomIndexOptionsHnswQua
143143
randomFrom((Float) null, 0f, (float) randomDoubleBetween(0.9, 1.0, true)),
144144
rescoreVector
145145
),
146-
new DenseVectorFieldMapper.BBQHnswIndexOptions(randomIntBetween(1, 100), randomIntBetween(1, 10_000), rescoreVector, randomBoolean())
146+
new DenseVectorFieldMapper.BBQHnswIndexOptions(
147+
randomIntBetween(1, 100),
148+
randomIntBetween(1, 10_000),
149+
rescoreVector,
150+
randomBoolean()
151+
)
147152
);
148153
}
149154

0 commit comments

Comments
 (0)