Skip to content

Commit b481231

Browse files
Docs update for ES|QL editor prettify option (#3236)
In serverless and from 9.2, the "Add line breaks on pipes" becomes "Prettify query". This change highlights this and also updates the example gif with something more illustrative (more than 2 lines) Closes: #3095
1 parent 8bf8ed8 commit b481231

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
-30.5 KB
Loading

explore-analyze/query-filter/languages/esql-kibana.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ FROM kibana_sample_data_logs | LIMIT 10
8383

8484
### Make your query readable [_make_your_query_readable]
8585

86-
For readability, you can put each processing command on a new line. The following query is identical to the previous one:
86+
For readability, you can put each processing command on a new line and add indentation. The following query is identical to the previous one:
8787

8888
```esql
8989
FROM kibana_sample_data_logs
90-
| LIMIT 10
90+
| LIMIT 10
9191
```
9292

93-
You can do that using the **Add line breaks on pipes** button from the query editor’s footer.
93+
You can do that automatically using the {icon}`pipeBreaks` **Prettify query** button from the query editor’s footer.
9494

9595
:::{image} /explore-analyze/images/esql-line-breakdown.gif
96-
:alt: Automatic line breaks for ES|QL queries
97-
:width: 50%
96+
:alt: Automatic line breaks and indentation for ES|QL queries
97+
:width: 75%
9898
:::
9999

100100
You can adjust the editor’s height by dragging its bottom border to your liking.

0 commit comments

Comments
 (0)