Skip to content

Commit f461204

Browse files
committed
Update comment
1 parent 54d48e5 commit f461204

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -985,9 +985,9 @@ 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
990-
// moot because we will explicitly fail to index docs into this semantic text field anyways.
988+
// Skip setting similarity on pre 8.11 indices. It causes dense vector field creation to fail because similarity can only be
989+
// set on indexed fields, which is not done by default prior to 8.11. The fact that the dense vector field is partially
990+
// configured is moot because we will explicitly fail to index docs into this semantic text field anyways.
991991
if (indexVersionCreated.onOrAfter(NEW_SPARSE_VECTOR)) {
992992
SimilarityMeasure similarity = modelSettings.similarity();
993993
if (similarity != null) {

0 commit comments

Comments
 (0)