From 65bb679c56936454e409406232bb14d8cf2591d6 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Wed, 16 Sep 2020 10:54:02 -0400 Subject: [PATCH] [DOCS] EQL: Move comparison operator defs --- docs/reference/eql/syntax.asciidoc | 59 +++++++++++++++--------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/docs/reference/eql/syntax.asciidoc b/docs/reference/eql/syntax.asciidoc index 4ce18bc7154..90c5b95230d 100644 --- a/docs/reference/eql/syntax.asciidoc +++ b/docs/reference/eql/syntax.asciidoc @@ -8,7 +8,8 @@ experimental::[] -IMPORTANT: {es} supports a subset of EQL syntax. See <>. +IMPORTANT: {es} supports a subset of {eql-ref}/index.html[EQL syntax]. See +<>. [discrete] [[eql-basic-syntax]] @@ -69,6 +70,34 @@ You can specify and combine these criteria using the following operators: < <= == != >= > ---- +.*Definitions* +[%collapsible] +==== +`<` (less than):: +Returns `true` if the value to the left of the operator is less than the value +to the right. Otherwise returns `false`. + +`<=` (less than or equal) :: +Returns `true` if the value to the left of the operator is less than or equal to +the value to the right. Otherwise returns `false`. + +`==` (equal):: +Returns `true` if the values to the left and right of the operator are equal. +Otherwise returns `false`. + +`!=` (not equal):: +Returns `true` if the values to the left and right of the operator are not +equal. Otherwise returns `false`. + +`>=` (greater than or equal) :: +Returns `true` if the value to the left of the operator is greater than or equal +to the value to the right. Otherwise returns `false`. + +`>` (greater than):: +Returns `true` if the value to the left of the operator is greater than the +value to the right. Otherwise returns `false`. +==== + You cannot use comparison operators to compare a variable, such as a field value, to another variable, even if those variables are modified using a <>. @@ -107,34 +136,6 @@ To search `text` fields, consider using a <> that contains a <> query. ==== -.*Definitions* -[%collapsible] -==== -`<` (less than):: -Returns `true` if the value to the left of the operator is less than the value -to the right. Otherwise returns `false`. - -`<=` (less than or equal) :: -Returns `true` if the value to the left of the operator is less than or equal to -the value to the right. Otherwise returns `false`. - -`==` (equal):: -Returns `true` if the values to the left and right of the operator are equal. -Otherwise returns `false`. - -`!=` (not equal):: -Returns `true` if the values to the left and right of the operator are not -equal. Otherwise returns `false`. - -`>=` (greater than or equal) :: -Returns `true` if the value to the left of the operator is greater than or equal -to the value to the right. Otherwise returns `false`. - -`>` (greater than):: -Returns `true` if the value to the left of the operator is greater than the -value to the right. Otherwise returns `false`. -==== - [discrete] [[eql-syntax-logical-operators]] ===== Logical operators