Skip to content

Commit 95eecc0

Browse files
wchaparrocursoragentleemthompo
authored
ESQL: mention MV_EXPAND on multivalued fields page (#142720)
* ESQL: mention MV_EXPAND on multivalued fields page Add paragraph explaining that to filter on individual values in a multivalued field use MV_EXPAND then WHERE. Fixes #105357. Co-authored-by: Cursor <cursoragent@cursor.com> * Update docs/reference/query-languages/esql/esql-multivalued-fields.md Co-authored-by: Liam Thompson <leemthompo@gmail.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Liam Thompson <leemthompo@gmail.com>
1 parent 4c284d8 commit 95eecc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/reference/query-languages/esql/esql-multivalued-fields.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ Work around this limitation by converting the field to single value with one of:
264264
* [`MV_MIN`](/reference/query-languages/esql/functions-operators/mv-functions.md#esql-mv_min)
265265
* [`MV_SUM`](/reference/query-languages/esql/functions-operators/mv-functions.md#esql-mv_sum)
266266

267+
To filter on individual values in a multivalued field (for example, to keep only rows where the field contains a given value), use the [`MV_EXPAND`](/reference/query-languages/esql/commands/mv_expand.md) command to expand the field into one row per value, then apply `WHERE` to the expanded column.
268+
267269
```console
268270
POST /_query
269271
{

0 commit comments

Comments
 (0)