-
Notifications
You must be signed in to change notification settings - Fork 238
Update multi-value-esql-controls.md #5689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d0cc5f7
9ea5f2c
f2c12f5
4bc2c35
897fa62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,8 +10,12 @@ You can create controls that let users select multiple values. To do that: | |
| Multi-selection is only available for `?values` variables. It is not available for `??fields` and `??functions` variables. | ||
| ::: | ||
|
|
||
| 2. When defining the control, select the **Allow multiple selections** option. | ||
| :::{note} | ||
| [`MV_CONTAINS`](elasticsearch://reference/query-languages/esql/functions-operators/mv-functions/mv_contains.md) will check if _all_ values are present, use [`MV_INTERSECTS`](elasticsearch://reference/query-languages/esql/functions-operators/mv-functions/mv_intersects.md) if you want _any_ present semantics. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey! Can you explain to me which is the difference between MV_CONTAINS with the MV_INTERSECTS we want to add here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one checks if all values are present in the field, the other will return true if any values are present. So if you have a field with for example cloud provider [AWS, AZURE, GCP] you can ask "give me all services deployed in AWS and AZURE" vs "Give me all services in AZURE or GCP"
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ::: | ||
|
|
||
| 3. When defining the control, select the **Allow multiple selections** option. | ||
|
|
||
| 3. Save the control. | ||
| 4. Save the control. | ||
|
|
||
| The newly configured control becomes available and allows users to select multiple values. | ||


Uh oh!
There was an error while loading. Please reload this page.