Skip to content

Commit 77004be

Browse files
committed
spotless
1 parent e74d932 commit 77004be

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,10 @@ public void testMissingInferenceId() throws IOException {
770770
useLegacyFormat,
771771
b -> b.startObject("field")
772772
.startObject(INFERENCE_FIELD)
773-
.field(MODEL_SETTINGS_FIELD, new MinimalServiceSettings("my-service", TaskType.SPARSE_EMBEDDING, null, null, null))
773+
.field(
774+
MODEL_SETTINGS_FIELD,
775+
new MinimalServiceSettings("my-service", TaskType.SPARSE_EMBEDDING, null, null, null)
776+
)
774777
.field(CHUNKS_FIELD, useLegacyFormat ? List.of() : Map.of())
775778
.endObject()
776779
.endObject()
@@ -958,7 +961,13 @@ public void testExistsQueryDenseVector() throws IOException {
958961
MapperService mapperService = mapperServiceForFieldWithModelSettings(
959962
fieldName,
960963
inferenceId,
961-
new MinimalServiceSettings("my-service", TaskType.TEXT_EMBEDDING, 1024, SimilarityMeasure.COSINE, DenseVectorFieldMapper.ElementType.FLOAT)
964+
new MinimalServiceSettings(
965+
"my-service",
966+
TaskType.TEXT_EMBEDDING,
967+
1024,
968+
SimilarityMeasure.COSINE,
969+
DenseVectorFieldMapper.ElementType.FLOAT
970+
)
962971
);
963972

964973
Mapper mapper = mapperService.mappingLookup().getMapper(fieldName);

0 commit comments

Comments
 (0)