Skip to content

Commit f059474

Browse files
committed
Made changes to accomodate the old constant version string
1 parent d5c4841 commit f059474

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ public class SemanticTextFieldMapper extends FieldMapper implements InferenceFie
156156
public static final String CONTENT_TYPE = "semantic_text";
157157
public static final String DEFAULT_FALLBACK_ELSER_INFERENCE_ID = DEFAULT_ELSER_ID;
158158
public static final String DEFAULT_EIS_ELSER_INFERENCE_ID = DEFAULT_ELSER_ENDPOINT_ID_V2;
159-
159+
/**
160+
* @deprecated Replaced by {@link #DEFAULT_EIS_ELSER_INFERENCE_ID}.
161+
*/
162+
@Deprecated(since = "9.3.0", forRemoval = false)
163+
public static final String DEFAULT_ELSER_2_INFERENCE_ID = DEFAULT_EIS_ELSER_INFERENCE_ID;
160164
public static final String UNSUPPORTED_INDEX_MESSAGE = "["
161165
+ CONTENT_TYPE
162166
+ "] is available on indices created with 8.11 or higher. Please create a new index to use ["

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
import static org.elasticsearch.xpack.inference.mapper.SemanticTextField.getChunksFieldName;
116116
import static org.elasticsearch.xpack.inference.mapper.SemanticTextField.getEmbeddingsFieldName;
117117
import static org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper.DEFAULT_EIS_ELSER_INFERENCE_ID;
118+
import static org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper.DEFAULT_ELSER_2_INFERENCE_ID;
118119
import static org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper.DEFAULT_FALLBACK_ELSER_INFERENCE_ID;
119120
import static org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper.DEFAULT_RESCORE_OVERSAMPLE;
120121
import static org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper.INDEX_OPTIONS_FIELD;

0 commit comments

Comments
 (0)