Skip to content

Commit 2483653

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 1312cd6 commit 2483653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,8 +1178,10 @@ private static Mapper.Builder createEmbeddingsField(
11781178
indexVersionCreated
11791179
);
11801180

1181-
// Skip setting similarity on pre 8.11 indices. It causes dense vector field creation to fail because similarity can only be set
1182-
// on indexed fields, which is not done by default prior to 8.11. The fact that the dense vector field is partially configured is
1181+
// Skip setting similarity on pre 8.11 indices. It causes dense vector field creation to fail because similarity can only be
1182+
// set
1183+
// on indexed fields, which is not done by default prior to 8.11. The fact that the dense vector field is partially
1184+
// configured is
11831185
// moot because we will explicitly fail to index docs into this semantic text field anyways.
11841186
if (indexVersionCreated.onOrAfter(NEW_SPARSE_VECTOR)) {
11851187
SimilarityMeasure similarity = modelSettings.similarity();

0 commit comments

Comments
 (0)