From 0a36b0a6c356ebe29bf1825d7187f3fa39efb697 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Thu, 23 May 2024 23:15:58 +0100 Subject: [PATCH] fix compil --- .../xpack/inference/mapper/SemanticTextFieldMapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java index 8324b121dfc4f..04b51006f9d23 100644 --- a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java +++ b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java @@ -449,7 +449,8 @@ private static Mapper.Builder createEmbeddingsField(IndexVersion indexVersionCre case TEXT_EMBEDDING -> { DenseVectorFieldMapper.Builder denseVectorMapperBuilder = new DenseVectorFieldMapper.Builder( CHUNKED_EMBEDDINGS_FIELD, - indexVersionCreated + indexVersionCreated, + 1 ); SimilarityMeasure similarity = modelSettings.similarity(); if (similarity != null) {