diff --git a/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java b/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java index f27ec7930..b4c33b2ee 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/DocumentChunkingProcessor.java @@ -155,7 +155,7 @@ private List chunkString(String content) { + "]" ); } - return chunker.chunk(content, chunkerParameters); + return result; } private List chunkList(List contentList) {