mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
[DOCS] EQL: Document string
function (#55086)
This commit is contained in:
parent
f0b6cf4c11
commit
57d6493e29
@ -12,6 +12,7 @@ experimental::[]
|
|||||||
* <<eql-fn-endswith>>
|
* <<eql-fn-endswith>>
|
||||||
* <<eql-fn-length>>
|
* <<eql-fn-length>>
|
||||||
* <<eql-fn-startswith>>
|
* <<eql-fn-startswith>>
|
||||||
|
* <<eql-fn-string>>
|
||||||
* <<eql-fn-substring>>
|
* <<eql-fn-substring>>
|
||||||
* <<eql-fn-wildcard>>
|
* <<eql-fn-wildcard>>
|
||||||
|
|
||||||
@ -337,6 +338,44 @@ field datatypes:
|
|||||||
*Returns:* boolean or `null`
|
*Returns:* boolean or `null`
|
||||||
====
|
====
|
||||||
|
|
||||||
|
[discrete]
|
||||||
|
[[eql-fn-string]]
|
||||||
|
=== `string`
|
||||||
|
|
||||||
|
Converts a value to a string.
|
||||||
|
|
||||||
|
[%collapsible]
|
||||||
|
====
|
||||||
|
*Example*
|
||||||
|
[source,eql]
|
||||||
|
----
|
||||||
|
string(42) // returns "42"
|
||||||
|
string(42.5) // returns "42.5"
|
||||||
|
string("regsvr32.exe") // returns "regsvr32.exe"
|
||||||
|
string(true) // returns "true"
|
||||||
|
|
||||||
|
// null handling
|
||||||
|
string(null) // returns null
|
||||||
|
----
|
||||||
|
|
||||||
|
*Syntax*
|
||||||
|
[source,txt]
|
||||||
|
----
|
||||||
|
string(<value>)
|
||||||
|
----
|
||||||
|
|
||||||
|
*Parameters*
|
||||||
|
|
||||||
|
`<value>`::
|
||||||
|
(Required)
|
||||||
|
Value to convert to a string. If `null`, the function returns `null`.
|
||||||
|
+
|
||||||
|
If using a field as the argument, this parameter does not support the
|
||||||
|
<<text,`text`>> field datatype.
|
||||||
|
|
||||||
|
*Returns:* string or `null`
|
||||||
|
====
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
[[eql-fn-substring]]
|
[[eql-fn-substring]]
|
||||||
=== `substring`
|
=== `substring`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user