From ecd7cceb7c1fc3cd8b827165b480bacdc81add1b Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Fri, 6 Dec 2024 12:43:22 +0000 Subject: [PATCH] line len --- .../xpack/inference/highlight/SemanticTextHighlighter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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