% This is generated by ESQL's MvSliceTests. Do not edit it. See docs/reference/query-languages/esql/README.md for how to regenerate it.

## Description

Returns a subset of the multivalued field using the start and end index values. Indexes are 0-based. This is most useful when reading from a function that emits multivalued columns in a known order like [`SPLIT`](/reference/query-languages/esql/functions-operators/string-functions/split.md) or [`MV_SORT`](/reference/query-languages/esql/functions-operators/mv-functions/mv_sort.md).

The order that [multivalued fields](/reference/query-languages/esql/esql-multivalued-fields.md) are read from
underlying storage is not guaranteed. It is **frequently** ascending, but don’t
rely on that.

