elasticsearch/docs/reference/query-languages/esql
Craig Taverner 7b263b4b83
Kibana updates, remove links from JSON and split is-null/is-not-null (#125986)
In particular:
* Remove all links (both asciidoc and markdown) from the JSON definition files.
  * This required a two phase edit, from asciidoc links to markdown, and then removal of markdown (replace with markdown text). This is because the asciidoc does not have the display text, and because some links were already markdown.
* Split predicates into is_null and is_not_null
  * We kept the old combined version because the main docs still use that, so now we have both combined and separate versions, and Kibana can select the version they want.
2025-04-01 15:46:24 +02:00
..
_snippets Kibana updates, remove links from JSON and split is-null/is-not-null (#125986) 2025-04-01 15:46:24 +02:00
images Kibana updates, remove links from JSON and split is-null/is-not-null (#125986) 2025-04-01 15:46:24 +02:00
kibana Kibana updates, remove links from JSON and split is-null/is-not-null (#125986) 2025-04-01 15:46:24 +02:00
processing-commands ESQL autogenerate docs v3 (#124312) 2025-03-13 14:16:46 +01:00
esql-commands.md Refine ESQL docs handling of applies_to (#125835) 2025-03-28 22:09:15 +01:00
esql-enrich-data.md ESQL: Add more details on ENRICH vs. LOOKUP JOIN to docs (#125487) 2025-03-24 16:26:28 +01:00
esql-examples.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-functions-operators.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-implicit-casting.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-lookup-join.md ESQL: Improve LOOKUP JOIN page (#125688) (#125798) 2025-03-28 09:07:28 +01:00
esql-metadata-fields.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-multivalued-fields.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-process-data-with-dissect-grok.md Doc: Update links to logstash plugin docs (#125675) 2025-03-26 11:54:37 -04:00
esql-syntax.md [docs] Migrate docs from AsciiDoc to Markdown (#123507) 2025-02-27 17:56:14 +01:00
esql-time-spans.md Split ESQL functions/operators docs files (#123904) 2025-03-04 14:59:31 +01:00
limitations.md Update limitations.md (#125893) 2025-03-28 22:35:41 +01:00
README.md ESQL autogenerate docs v3 (#124312) 2025-03-13 14:16:46 +01:00

The ES|QL documentation is composed of static content and generated content. The static content exists in this directory and can be edited by hand. However, the sub-directories _snippets, images and kibana contain mostly generated content.

_snippets

In _snippets there are files that can be included within other files using the File Inclusion feature of the Elastic Docs V3 system. Most, but not all, files in this directory are generated. In particular the directories _snippets/functions/* and _snippets/operators/* contain subdirectories that are mostly generated:

  • description - description of each function scraped from @FunctionInfo#description
  • examples - examples of each function scraped from @FunctionInfo#examples
  • parameters - description of each function's parameters scraped from @Param
  • signature - railroad diagram of the syntax to invoke each function
  • types - a table of each combination of support type for each parameter. These are generated from tests.
  • layout - a fully generated description for each function

Most functions can use the generated docs generated in the layout directory. If we need something more custom for the function we can make a file in this directory that can include:: any parts of the files above.

To regenerate the files for a function run its tests using gradle. For example to generate docs for the CASE function:

./gradlew :x-pack:plugin:esql:test -Dtests.class='CaseTests'

To regenerate the files for all functions run all of ESQL's tests using gradle:

./gradlew :x-pack:plugin:esql:test

images

The images directory contains functions and operators sub-directories with the *.svg files used to describe the syntax of each function or operator. These are all generated by the same tests that generate the functions and operators docs above.

kibana

The kibana directory contains definition and docs sub-directories that are generated:

  • kibana/definition - function definitions for kibana's ESQL editor
  • kibana/docs - the inline docs for kibana

These are also generated as part of the unit tests described above.