Back to Elasticsearch

Chunk

docs/reference/query-languages/esql/_snippets/functions/description/chunk.md

9.4.0590 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

Description

Use CHUNK to split a text field into smaller chunks.

Chunk can be used on fields from the text family like text and semantic_text. Chunk will split a text field into smaller chunks, using a sentence-based chunking strategy. The number of chunks returned, and the length of the sentences used to create the chunks can be specified.