ES|QL URL_ENCODE_COMPONENT function
string-
The URL to encode.
URL-encodes the input. All characters are percent-encoded except for alphanumerics, ., -, _, and ~. Spaces are encoded as %20.
| string | result |
|---|---|
| keyword | keyword |
| text | keyword |
ROW u = "https://example.com/?x=foo bar&y=baz"
| EVAL u = URL_ENCODE_COMPONENT(u)
| u:keyword |
|---|
| https%3A%2F%2Fexample.com%2F%3Fx%3Dfoo%20bar%26y%3Dbaz |