Skip to content

Commit 096a7de

Browse files
committed
apply review comment
1 parent 96cbf4f commit 096a7de

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/mapper/SemanticTextFieldMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ public Query existsQuery(SearchExecutionContext context) {
868868
public ValueFetcher valueFetcher(SearchExecutionContext context, String format) {
869869
if (format != null && "chunks".equals(format) == false) {
870870
throw new IllegalArgumentException(
871-
"Unknow format [" + format + "] for field [" + name() + "], only [chunks] is supported."
871+
"Unknown format [" + format + "] for field [" + name() + "], only [chunks] is supported."
872872
);
873873
}
874874
if (format != null) {

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ setup:
674674
---
675675
"Retrieve chunks with the fields api":
676676
- requires:
677-
cluster_features: "semantic_text.match_all_highlighter"
678-
reason: semantic text field supports match_all query with semantic highlighter, effective from 8.19 and 9.1.0.
677+
cluster_features: "semantic_text.fields_chunks_format"
678+
reason: semantic text field supports retrieving chunks through fields API in 9.2.0.
679679

680680
- do:
681681
indices.create:

0 commit comments

Comments
 (0)