Skip to content

Commit c209159

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 0c43ccc commit c209159

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,11 @@ private static void assertSemanticTextField(
793793
assertEquals(sparseVectorFieldMapper.fieldType().isStored(), semanticTextFieldType.useLegacyFormat() == false);
794794
IndexVersion indexVersion = mapperService.getIndexSettings().getIndexVersionCreated();
795795

796-
if (expectedIndexOptions != null &&
797-
SparseVectorFieldMapper.SparseVectorIndexOptions.isDefaultOptions(
798-
sparseVectorFieldMapper.fieldType().getIndexOptions(), indexVersion
799-
) == false
800-
) {
796+
if (expectedIndexOptions != null
797+
&& SparseVectorFieldMapper.SparseVectorIndexOptions.isDefaultOptions(
798+
sparseVectorFieldMapper.fieldType().getIndexOptions(),
799+
indexVersion
800+
) == false) {
801801
assertEquals(expectedIndexOptions.indexOptions(), sparseVectorFieldMapper.fieldType().getIndexOptions());
802802
} else {
803803
assertNull(sparseVectorFieldMapper.fieldType().getIndexOptions());
@@ -1096,7 +1096,8 @@ public void testDenseVectorElementType() throws IOException {
10961096
public void testSettingAndUpdatingChunkingSettings() throws IOException {
10971097
Model model = TestModel.createRandomInstance(TaskType.SPARSE_EMBEDDING);
10981098
final ChunkingSettings chunkingSettings = generateRandomChunkingSettings(false);
1099-
final SemanticTextIndexOptions indexOptions = randomSemanticTextIndexOptions(TaskType.SPARSE_EMBEDDING);;
1099+
final SemanticTextIndexOptions indexOptions = randomSemanticTextIndexOptions(TaskType.SPARSE_EMBEDDING);
1100+
;
11001101
String fieldName = "field";
11011102

11021103
SemanticTextField randomSemanticText = randomSemanticText(
@@ -1407,12 +1408,12 @@ public void testDefaultIndexOptions() throws IOException {
14071408
assertSemanticTextField(mapperService, "field", true, null, defaultDenseVectorSemanticIndexOptions());
14081409

14091410
mapperService = createMapperService(fieldMapping(b -> {
1410-
b.field("type", "semantic_text");
1411-
b.field("inference_id", "another_inference_id");
1412-
b.startObject("model_settings");
1413-
b.field("task_type", "sparse_embedding");
1414-
b.endObject();
1415-
}),
1411+
b.field("type", "semantic_text");
1412+
b.field("inference_id", "another_inference_id");
1413+
b.startObject("model_settings");
1414+
b.field("task_type", "sparse_embedding");
1415+
b.endObject();
1416+
}),
14161417
useLegacyFormat,
14171418
IndexVersionUtils.getPreviousVersion(IndexVersions.SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT),
14181419
IndexVersions.SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_SUPPORT

0 commit comments

Comments
 (0)