Skip to content

Commit 6e0d484

Browse files
Updating node feature for handling empty input name and description
1 parent 6403aa0 commit 6e0d484

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Set<NodeFeature> getTestFeatures() {
5050
SEMANTIC_TEXT_HIGHLIGHTER_DEFAULT,
5151
SEMANTIC_KNN_FILTER_FIX,
5252
TEST_RERANKING_SERVICE_PARSE_TEXT_AS_SCORE,
53-
SemanticTextFieldMapper.SEMANTIC_TEXT_SKIPS_GENERATING_EMBEDDINGS_FIX
53+
SemanticTextFieldMapper.SEMANTIC_TEXT_HANDLE_EMPTY_INPUT
5454
);
5555
}
5656
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public class SemanticTextFieldMapper extends FieldMapper implements InferenceFie
117117
public static final NodeFeature SEMANTIC_TEXT_ALWAYS_EMIT_INFERENCE_ID_FIX = new NodeFeature(
118118
"semantic_text.always_emit_inference_id_fix"
119119
);
120-
public static final NodeFeature SEMANTIC_TEXT_SKIPS_GENERATING_EMBEDDINGS_FIX = new NodeFeature(
121-
"semantic_text.skips_generating_embeddings_fix"
120+
public static final NodeFeature SEMANTIC_TEXT_HANDLE_EMPTY_INPUT = new NodeFeature(
121+
"semantic_text.handle_empty_input"
122122
);
123123
public static final NodeFeature SEMANTIC_TEXT_SKIP_INFERENCE_FIELDS = new NodeFeature("semantic_text.skip_inference_fields");
124124

0 commit comments

Comments
 (0)