Skip to content

Commit 88ff60e

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 54d48e5 commit 88ff60e

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
@@ -985,8 +985,10 @@ private static Mapper.Builder createEmbeddingsField(
985985
indexVersionCreated
986986
);
987987

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

0 commit comments

Comments
 (0)