Back to Elasticsearch

Chunk

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

9.4.0617 B
Original Source

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

Example

{applies_to}
stack: preview 9.3.0
esql
ROW result = CHUNK("It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief.", {"strategy": "word", "max_chunk_size": 10, "overlap": 1})
| MV_EXPAND result
result:keyword
It was the best of times, it was the worst
worst of times, it was the age of wisdom, it
, it was the age of foolishness, it was the epoch
epoch of belief.