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 + "]" );