7
7
[.text-center]
8
8
image::esql/functions/signature/equals.svg[Embedded,opts=inline]
9
9
10
+ Check if two fields are equal. If either field is <<esql-multivalued-fields,multivalued>> then
11
+ the result is `null`.
12
+
13
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
14
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
15
+
10
16
Supported types:
11
17
12
18
include::types/equals.asciidoc[]
@@ -15,6 +21,12 @@ include::types/equals.asciidoc[]
15
21
[.text-center]
16
22
image::esql/functions/signature/not_equals.svg[Embedded,opts=inline]
17
23
24
+ Check if two fields are unequal. If either field is <<esql-multivalued-fields,multivalued>> then
25
+ the result is `null`.
26
+
27
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
28
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
29
+
18
30
Supported types:
19
31
20
32
include::types/not_equals.asciidoc[]
@@ -23,55 +35,112 @@ include::types/not_equals.asciidoc[]
23
35
[.text-center]
24
36
image::esql/functions/signature/less_than.svg[Embedded,opts=inline]
25
37
38
+ Check if one field is less than another. If either field is <<esql-multivalued-fields,multivalued>>
39
+ then the result is `null`.
40
+
41
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
42
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
43
+
44
+ Supported types:
45
+
26
46
include::types/less_than.asciidoc[]
27
47
28
48
==== Less than or equal to `<=`
29
49
[.text-center]
30
50
image::esql/functions/signature/less_than_or_equal.svg[Embedded,opts=inline]
31
51
52
+ Check if one field is less than or equal to another. If either field is <<esql-multivalued-fields,multivalued>>
53
+ then the result is `null`.
54
+
55
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
56
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
57
+
58
+ Supported types:
59
+
32
60
include::types/less_than_or_equal.asciidoc[]
33
61
34
62
==== Greater than `>`
35
63
[.text-center]
36
64
image::esql/functions/signature/greater_than.svg[Embedded,opts=inline]
37
65
66
+ Check if one field is greater than another. If either field is <<esql-multivalued-fields,multivalued>>
67
+ then the result is `null`.
68
+
69
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
70
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
71
+
72
+ Supported types:
73
+
38
74
include::types/greater_than.asciidoc[]
39
75
40
76
==== Greater than or equal to `>=`
41
77
[.text-center]
42
78
image::esql/functions/signature/greater_than_or_equal.svg[Embedded,opts=inline]
43
79
80
+ Check if one field is greater than or equal to another. If either field is <<esql-multivalued-fields,multivalued>>
81
+ then the result is `null`.
82
+
83
+ NOTE: This is pushed to the underlying search index if one side of the comparison is constant
84
+ and the other side is a field in the index that has both an <<mapping-index>> and <<doc-values>>.
85
+
86
+ Supported types:
87
+
44
88
include::types/greater_than_or_equal.asciidoc[]
45
89
46
90
==== Add `+`
47
91
[.text-center]
48
92
image::esql/functions/signature/add.svg[Embedded,opts=inline]
49
93
94
+ Add two numbers together. If either field is <<esql-multivalued-fields,multivalued>>
95
+ then the result is `null`.
96
+
97
+ Supported types:
98
+
50
99
include::types/add.asciidoc[]
51
100
52
101
==== Subtract `-`
53
102
[.text-center]
54
103
image::esql/functions/signature/sub.svg[Embedded,opts=inline]
55
104
105
+ Subtract one number from another. If either field is <<esql-multivalued-fields,multivalued>>
106
+ then the result is `null`.
107
+
108
+ Supported types:
109
+
56
110
include::types/sub.asciidoc[]
57
111
58
112
==== Multiply `*`
59
113
[.text-center]
60
114
image::esql/functions/signature/mul.svg[Embedded,opts=inline]
61
115
116
+ Multiply two numbers together. If either field is <<esql-multivalued-fields,multivalued>>
117
+ then the result is `null`.
118
+
119
+ Supported types:
120
+
62
121
include::types/mul.asciidoc[]
63
122
64
123
==== Divide `/`
65
124
[.text-center]
66
125
image::esql/functions/signature/div.svg[Embedded,opts=inline]
67
126
127
+ Divide one number by another. If either field is <<esql-multivalued-fields,multivalued>>
128
+ then the result is `null`.
129
+
68
130
NOTE: Division of two integer types will yield an integer result, rounding towards 0.
69
131
If you need floating point division, wrap one of the arguments in <<esql-to_double>>.
70
132
133
+ Supported types:
134
+
71
135
include::types/div.asciidoc[]
72
136
73
137
==== Modulus `%`
74
138
[.text-center]
75
139
image::esql/functions/signature/mod.svg[Embedded,opts=inline]
76
140
141
+ Divide one number by another and return the remainder. If either field is <<esql-multivalued-fields,multivalued>>
142
+ then the result is `null`.
143
+
144
+ Supported types:
145
+
77
146
include::types/mod.asciidoc[]
0 commit comments