Skip to content

Commit f20bd23

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent d6d2900 commit f20bd23

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ public static SparseVectorFieldMapper.SparseVectorIndexOptions randomSparseVecto
4646
return new SparseVectorFieldMapper.SparseVectorIndexOptions(false, null);
4747
}
4848

49-
return new SparseVectorFieldMapper.SparseVectorIndexOptions(true, new TokenPruningConfig(
50-
randomFloatBetween(1.0f, 100.0f, true),
51-
randomFloatBetween(0.0f, 1.0f, true),
52-
randomBoolean()
53-
));
49+
return new SparseVectorFieldMapper.SparseVectorIndexOptions(
50+
true,
51+
new TokenPruningConfig(randomFloatBetween(1.0f, 100.0f, true), randomFloatBetween(0.0f, 1.0f, true), randomBoolean())
52+
);
5453
}
5554
}

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextIndexOptions.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ private static DenseVectorFieldMapper.DenseVectorIndexOptions parseDenseVectorIn
135135
}
136136
}
137137

138-
private static SparseVectorFieldMapper.SparseVectorIndexOptions parseSparseVectorIndexOptionsFromMap(
139-
Map<String, Object> map
140-
) {
138+
private static SparseVectorFieldMapper.SparseVectorIndexOptions parseSparseVectorIndexOptionsFromMap(Map<String, Object> map) {
141139
try {
142140
Object type = map.remove(TYPE_FIELD);
143141
if (type == null) {

0 commit comments

Comments
 (0)