diff --git a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighter.java b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighter.java index eeff79a1a2434..70e452a4967de 100644 --- a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighter.java +++ b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighter.java @@ -117,7 +117,8 @@ public HighlightField highlight(FieldHighlightContext fieldContext) throws IOExc throw new IllegalStateException( String.format( Locale.ROOT, - "Invalid content detected for field [%s]: the chunks size is [%d], but a reference to offset [%d] was found in the result.", + "Invalid content detected for field [%s]: the chunks size is [%d], " + + "but a reference to offset [%d] was found in the result.", fieldType.name(), nestedSources.size(), chunk.offset