Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/reference/esql/esql-kibana.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ in-product reference documentation for all commands and functions or to get
recommended queries that will help you get started.

// tag::autocomplete[]
To make it easier to write queries, auto-complete offers suggestions with
possible commands and functions:
Discover suggests possible commands and functions to autocomplete your query:

image::images/esql/esql-kibana-auto-complete.png[align="center"]
// end::autocomplete[]
Expand Down
14 changes: 9 additions & 5 deletions docs/reference/esql/esql-rest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ James S.A. Corey |Leviathan Wakes |561 |2011-06-02T00:00:00.000Z

[discrete]
[[esql-kibana-console]]
==== Kibana Console
==== Run the {esql} query API in Console

If you are using {kibana-ref}/console-kibana.html[Kibana Console] (which is
highly recommended), take advantage of the triple quotes `"""` when creating the
query. This not only automatically escapes double quotes (`"`) inside the query
string but also supports multi-line requests:
We recommend using {kibana-ref}/console-kibana.html[Console] to run the {esql}
query API. When creating the query, using triple quotes (`"""`) allows you to
use special characters like quotes (`"`) without having to escape them. They
also make it easier to write multi-line requests:

// tag::esql-query-api[]
[source,console]
Expand All @@ -60,6 +60,10 @@ POST /_query?format=txt
----
// TEST[setup:library]

Inside quotes, Console suggests possible commands and functions to autocomplete your query:

image::images/esql/console-esql-autocomplete.png[align="center"]

[discrete]
[[esql-rest-format]]
==== Response formats
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ example:
POST /_query?format=txt
{
"query": """
FROM sample_data
FROM kibana_sample_data_logs
"""
}
----

Inside quotes, Console suggests possible commands and functions to autocomplete your query:

image::images/esql/console-esql-autocomplete.png[align="center"]

// end::console[]


Expand Down