From 57a3ef757f82819080586947aafab1e93b3a63cb Mon Sep 17 00:00:00 2001 From: yuye-aws Date: Thu, 7 Mar 2024 16:41:24 +0800 Subject: [PATCH] spotless apply for document chunking processor Signed-off-by: yuye-aws --- .../neuralsearch/processor/DocumentChunkingProcessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java b/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java index f3bbaf9d3..5b8269586 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java @@ -145,7 +145,9 @@ private List chunkString(String content) { current_chunk_count += result.size(); if (max_chunk_limit != DEFAULT_MAX_CHUNK_LIMIT && current_chunk_count > max_chunk_limit) { throw new IllegalArgumentException( - "Unable to create the processor as the number of chunks [" + current_chunk_count + "] exceeds the maximum chunk limit [" + "Unable to create the processor as the number of chunks [" + + current_chunk_count + + "] exceeds the maximum chunk limit [" + MAX_CHUNK_LIMIT_FIELD + "]" );