Skip to content

Commit f33e549

Browse files
nik9000albertzaharovits
authored andcommitted
ESQL: Move description of commands in docs (#110714)
This copies the first line of the description of each command to just under the syntax so that it's "in order", before the `Parameters` section. That way if you are reading from top to bottom you see: ``` syntax short description parameter names and descriptions long description examples ``` I've also removed the `Description` section entirely if the description was just one sentence. So in some cases that just isn't `long description`.
1 parent 495bee7 commit f33e549

16 files changed

+51
-35
lines changed

docs/reference/esql/processing-commands/dissect.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-dissect]]
33
=== `DISSECT`
44

5+
`DISSECT` enables you to <<esql-process-data-with-dissect-and-grok,extract
6+
structured data out of a string>>.
7+
58
**Syntax**
69

710
[source,esql]
@@ -56,4 +59,4 @@ include::{esql-specs}/docs.csv-spec[tag=dissectWithToDatetime]
5659
include::{esql-specs}/docs.csv-spec[tag=dissectWithToDatetime-result]
5760
|===
5861

59-
// end::examples[]
62+
// end::examples[]

docs/reference/esql/processing-commands/drop.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
[[esql-drop]]
33
=== `DROP`
44

5+
The `DROP` processing command removes one or more columns.
6+
57
**Syntax**
68

79
[source,esql]
@@ -14,10 +16,6 @@ DROP columns
1416
`columns`::
1517
A comma-separated list of columns to remove. Supports wildcards.
1618

17-
*Description*
18-
19-
The `DROP` processing command removes one or more columns.
20-
2119
*Examples*
2220

2321
[source,esql]

docs/reference/esql/processing-commands/enrich.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-enrich]]
33
=== `ENRICH`
44

5+
`ENRICH` enables you to add data from existing indices as new columns using an
6+
enrich policy.
7+
58
**Syntax**
69

710
[source,esql]

docs/reference/esql/processing-commands/eval.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-eval]]
33
=== `EVAL`
44

5+
The `EVAL` processing command enables you to append new columns with calculated
6+
values.
7+
58
**Syntax**
69

710
[source,esql]

docs/reference/esql/processing-commands/grok.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-grok]]
33
=== `GROK`
44

5+
`GROK` enables you to <<esql-process-data-with-dissect-and-grok,extract
6+
structured data out of a string>>.
7+
58
**Syntax**
69

710
[source,esql]

docs/reference/esql/processing-commands/keep.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-keep]]
33
=== `KEEP`
44

5+
The `KEEP` processing command enables you to specify what columns are returned
6+
and the order in which they are returned.
7+
58
**Syntax**
69

710
[source,esql]
@@ -70,7 +73,7 @@ include::{esql-specs}/docs.csv-spec[tag=keepDoubleWildcard]
7073
include::{esql-specs}/docs.csv-spec[tag=keep-double-wildcard-result]
7174
|===
7275

73-
The following examples show how precedence rules work when a field name matches multiple expressions.
76+
The following examples show how precedence rules work when a field name matches multiple expressions.
7477

7578
Complete field name has precedence over wildcard expressions:
7679

docs/reference/esql/processing-commands/limit.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
[[esql-limit]]
33
=== `LIMIT`
44

5+
The `LIMIT` processing command enables you to limit the number of rows that are
6+
returned.
7+
58
**Syntax**
69

710
[source,esql]

docs/reference/esql/processing-commands/lookup.asciidoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
experimental::["LOOKUP is a highly experimental and only available in SNAPSHOT versions."]
66

7+
`LOOKUP` matches values from the input against a `table` provided in the request,
8+
adding the other fields from the `table` to the output.
9+
710
**Syntax**
811

912
[source,esql]
@@ -19,11 +22,6 @@ The name of the `table` provided in the request to match.
1922
`match_field`::
2023
The fields in the input to match against the table.
2124

22-
*Description*
23-
24-
`LOOKUP` matches values from the input against a `table` provided in the request,
25-
adding the other fields from the `table` to the output.
26-
2725
*Examples*
2826

2927
// tag::examples[]

docs/reference/esql/processing-commands/mv_expand.asciidoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
preview::[]
66

7+
The `MV_EXPAND` processing command expands multivalued columns into one row per
8+
value, duplicating other columns.
9+
710
**Syntax**
811

912
[source,esql]
@@ -16,11 +19,6 @@ MV_EXPAND column
1619
`column`::
1720
The multivalued column to expand.
1821

19-
*Description*
20-
21-
The `MV_EXPAND` processing command expands multivalued columns into one row per
22-
value, duplicating other columns.
23-
2422
*Example*
2523

2624
[source.merge.styled,esql]

docs/reference/esql/processing-commands/rename.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
[[esql-rename]]
33
=== `RENAME`
44

5+
The `RENAME` processing command renames one or more columns.
6+
57
**Syntax**
68

79
[source,esql]

0 commit comments

Comments
 (0)