Skip to content

Commit ac4c879

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent b5c52da commit ac4c879

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -681,12 +681,9 @@ public void testRescoreOversampleQueryOverrides() {
681681

682682
public void testFilterSearchThreshold() {
683683
List<Tuple<DenseVectorFieldMapper.ElementType, Function<Query, KnnSearchStrategy>>> cases = List.of(
684-
Tuple.tuple(FLOAT, q -> q instanceof PatienceKnnVectorQuery ?
685-
null : ((ESKnnFloatVectorQuery) q).getStrategy()),
686-
Tuple.tuple(BYTE, q -> q instanceof PatienceKnnVectorQuery ?
687-
null : ((ESKnnByteVectorQuery) q).getStrategy()),
688-
Tuple.tuple(BIT, q -> q instanceof PatienceKnnVectorQuery ?
689-
null : ((ESKnnByteVectorQuery) q).getStrategy())
684+
Tuple.tuple(FLOAT, q -> q instanceof PatienceKnnVectorQuery ? null : ((ESKnnFloatVectorQuery) q).getStrategy()),
685+
Tuple.tuple(BYTE, q -> q instanceof PatienceKnnVectorQuery ? null : ((ESKnnByteVectorQuery) q).getStrategy()),
686+
Tuple.tuple(BIT, q -> q instanceof PatienceKnnVectorQuery ? null : ((ESKnnByteVectorQuery) q).getStrategy())
690687
);
691688
for (var tuple : cases) {
692689
DenseVectorFieldType fieldType = new DenseVectorFieldType(

0 commit comments

Comments
 (0)