elasticsearch/docs/reference/esql/processing-commands/where.asciidoc
Abdon Pijpelink 76ab37b35d
[DOCS] Uniform formatting for ES|QL commands (#101728)
* Source commands

* Missing word

* Processing commands

* Apply suggestions from code review

Co-authored-by: Alexander Spies <alexander.spies@elastic.co>

* Review feedback

* Add sort detail for mv

* More review feedback

---------

Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
2023-11-06 08:42:13 +01:00

44 lines
728 B
Text

[discrete]
[[esql-where]]
=== `WHERE`
**Syntax**
[source,esql]
----
WHERE expression
----
*Parameters*
`expression`::
A boolean expression.
*Description*
The `WHERE` processing command produces a table that contains all the rows from
the input table for which the provided condition evaluates to `true`.
`WHERE` supports various <<esql-functions,functions>> and
<<esql-operators,operators>>.
*Examples*
[source,esql]
----
include::{esql-specs}/docs.csv-spec[tag=where]
----
Which, if `still_hired` is a boolean field, can be simplified to:
[source,esql]
----
include::{esql-specs}/docs.csv-spec[tag=whereBoolean]
----
Using a function:
[source,esql]
----
include::{esql-specs}/docs.csv-spec[tag=whereFunction]
----