Commit graph

48 commits

Author SHA1 Message Date
Ioana Tagirta
954af26f8a
Document boost option for match_phrase (#128738) (#128741) 2025-06-02 20:07:20 +10:00
Ioana Tagirta
81392178e8
Docs: Fix match_phrase docs for zero_terms_query (#128387) (#128402) 2025-05-24 03:43:20 +10:00
Liam Thompson
793f1fc3b4
[DOCS] Make ESQL functions/operators/commands overview accordions open by default (#128197) (#128238) 2025-05-21 20:18:01 +10:00
Craig Taverner
73343c94a2
[9.0] Initial kibana definition files for command, currently only providing License information (#127829) (#127892)
* Initial kibana definition files for command, currently only providing License information (#127829)

Initial Kibana definition files for commands, currently only providing License information. We leave the license field out if it works with BASIC, so the only two files that actually have a license line are:

* CHANGE_POINT: PLATINUM
* RRF: ENTERPRISE

* Backport required removing unsupported commands (only in 9.1)
2025-05-08 19:29:47 +10:00
Liam Thompson
e4a057fe81
ESQL: Document LU JOIN/MV_EXPAND not respecting SORT (#127718) (#127808)
(cherry picked from commit 9e3ae5b224)

Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
2025-05-07 19:28:59 +10:00
Craig Taverner
e16bb4a523
Output function signature license requirements to Kibana definitions (#127717) (#127802)
Output function signature license requirements to Kibana definition files, and also test that this matches the actual licensing behaviour of the functions.

ES|QL functions that enforce license checks do so with the `LicenseAware` interface. This does not expose what that functions license level is, but only whether the current active license will be sufficient for that function and its current signature (data types passed in as fields). Rather than add to this interface, we've made the license level information test-only information. This means if a function implements LicenseAware, it also needs to add a method to its test class to specify the license level for the signature being called. All functions will be tested for compliance, so failing to add this will result in test failure. Also if the test license level does not match the enforced license, that will also cause a failure.
2025-05-07 19:09:38 +10:00
Lisa Cawley
5b5d7d6c6e
[DOCS] Remove poor link in sql-index-frozen.md (#127543) (#127572) 2025-05-01 01:09:41 +10:00
Liam Thompson
50330dc481
[DOCS][9.x] Fix tip placement in lookup-join.md (#127552) (#127554)
h/t @alex-spies
2025-04-30 20:26:12 +10:00
Liam Thompson
e3836b5d87
[DOCS][9.x] Improve ESQL reference docs information architecture (#127248) (#127380)
* [DOCS][9.0]  Improve ESQL reference docs IA

- reorganized es|ql reference documentation from flat list to logical hierarchy
- created three main sections: syntax reference , special fields, advanced operations
- renamed pages with more consistent and task-oriented titles
- aligned navigation titles with page content
- improved introductory text for each section
- used parallel phrasing for similar concepts
- clarified the relationship between reference docs and conceptual docs

Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
2025-04-25 11:30:49 +02:00
Liam Thompson
d4dc01c9e8
[docs] Fix various syntax and rendering errors (#127062) (#127344)
* fix syntax and rendering errors

* clean up

* fix versions

* more clean up

* more fixes

* more fixes

* more fixes

(cherry picked from commit 08552f1c2e)

# Conflicts:
#	docs/reference/elasticsearch/mapping-reference/dense-vector.md
#	docs/reference/elasticsearch/mapping-reference/semantic-text.md

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-04-25 02:54:16 +10:00
Liam Thompson
1741ccba10
[DOCS] Update esql-lookup-join.md (#127306) (#127312)
- I trimmed the KEEP query in my final iteration in https://github.com/elastic/elasticsearch/pull/127215 but neglected to update the query itself, only the response. This fixes that so the query matches the response.

- 🚘 I also updated the table response to match other ESQL response tables
2025-04-24 20:41:13 +10:00
Charlotte Hoblik
4bb62d6c01
fix superscript (#127147) (#127235) 2025-04-23 22:21:25 +10:00
Liam Thompson
3e3a6b0613
[DOCS][ESQL] Cleanup and cross-reference LOOKUP JOIN reference and landing pages (#127215) (#127232)
* [DOCS][ESQL] Cleanup and cross-reference LOOKUP JOIN reference and landing pages

**lookup-join.md (syntax reference)**:
- removed tip formatting for simpler direct link to landing page
- improved parameter formatting and descriptions
- fixed template variable from `{esql}` to `{{esql}}`

**esql-lookup-join.md (landing page)**:
- added "compare with enrich" section header
- simplified "how the command works" with clearer parameter explanation
- added code example in how it works section
- improved image alt text for accessibility
- organized example section with better context and SQL comparison
- added dropdown for sample tables to reduce visual clutter
- added "query" subheading for clearer organization
- included reference to additional examples in command reference
- removed excessive whitespace

* Improve example, add setup code

replaced abstract employee/language example with security monitoring use case
added setup instructions for creating test indices
included sample data loading via bulk api
new practical query example joining firewall logs with threat data
simplified results output showing threat detection scenario
added note about left-join behavior
improved code comments and structure
added required index.mode: lookup setting info
2025-04-23 21:32:51 +10:00
Craig Taverner
258e31cd70
Support depthOffset in MD docs headings for nesting functions (#126984) (#127092)
While this change appears subtle at this point, I am using this in a later PR that adds a lot more spatial functions, where nesting them in related groups like this looks much better.

The main impact of this is that the On this page navigator on the right panel of the docs will show the nesting

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-04-19 20:33:57 +10:00
Liam Thompson
11cca8cc39
[DOCS] Update URLs for ESQL Kibana generated docs (#127011) (#127025)
(cherry picked from commit b6c9b9b54d)

# Conflicts:
#	docs/reference/query-languages/esql/_snippets/functions/examples/multi_match.md
#	docs/reference/query-languages/esql/kibana/definition/functions/multi_match.json
#	docs/reference/query-languages/esql/kibana/docs/functions/multi_match.md
2025-04-18 03:36:15 +10:00
Liam Thompson
2ba8d27c68
[DOCS] Update esql-lookup-join.md to mention index mode requirement (#126901) (#126904)
*  Update esql-lookup-join.md to mention index mode requirement

* fix 8.x page mapping metadata
2025-04-16 20:25:06 +10:00
Craig Taverner
57ca5e112e
Make LOOKUP JOIN docs examples fully tested (#126622) (#126756)
The current LOOKUP JOIN docs include examples that are not tested by the ES|QL tests, unlike most other examples in the documentation. This PR fixes that, changing two examples to use existing tests, and adding a new csv-spec file for the remaining four examples. These four are not required to show results, so the tests have empty data and do not require any results. This means we are testing only the syntax (parsing and semantic analysis), which is sufficient for the docs.
2025-04-14 18:57:05 +10:00
Lisa Cawley
09e9ee2e46
[DOCS] Fix broken images (#126648) (#126741) 2025-04-12 12:13:25 +10:00
Liam Thompson
7d77135166
Add license mention to ESQL categorize (#126666) (#126669)
* Add license mention to ESQL categorize
exceptional licensing mention in docs
2025-04-11 19:25:23 +10:00
Craig Taverner
942640eb8a
[9.0] Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) (#126624)
* Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279)

While the internal structure of the docs is already split into many (over 1000) sub-pages, the final display for the `Functions and Operators` page is a single giant page, making navigation harder. This PR splits it into separate pages, one for each group of similar functions and one for the operators. Twelve new pages.

This PR also bundles a few other related changes. In total what is done is:
* Split functions/operators into 12 pages, one for each group, maintaining the existing split of each function/operator into a snippet with dynamically generated examples
* Split esql-commands.md into source-commands.md and processing-commands.md, each of which is split into individual snippets, one for each command
* Each command snippet has it's examples split out into separate files, if they were examples that were dynamically generated in the older asciidoc system
* The examples files are overwritten by the ES|QL unit tests, using a similar mechanism to the examples written for functions and operators)
* Some additional refinements to the Kibana definition and markdown files (nicer operator headings, and display text)

* After re-running tests to ensure we get 9.0 behaviour only
2025-04-11 03:20:07 +10:00
Iván Cea Fontenla
6c8ac6ebbb
ESQL: Updated RENAME docs with the behaviour of multiple column renames (#126462) (#126522)
* ESQL: Updated RENAME docs with the behaviour of multiple column renames

* Added rename example to csv-spec
2025-04-09 21:56:16 +10:00
Nik Everett
00ffed0e49
ESQL: Hide some "extras" from docs (#124763) (#126122)
Hides some of the "extra" lines from ESQL's documentation. These lines
are required to make the documentation into nice tests which is
important to make sure the docs don't get out of date. But readers don't
need to see them.
2025-04-03 00:54:48 +11:00
Craig Taverner
8704355f2e
Kibana updates, remove links from JSON and split is-null/is-not-null (#125986) (#126039)
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-02 03:25:57 +11:00
Craig Taverner
d9fdcf7a56
Refine ESQL docs handling of applies_to (#125835) (#125923)
This primarily splits the old preview:true warning from the newer applies_to approach. Since all of our current applies_to examples are actually just behaviour modifications of current functions, we do not use the official docs {applies_to} syntax. However there is code to make use of that in the case where we have an entirely new function which will appear in a new version.

Co-authored-by: Alexander Spies <alexander.spies@elastic.co>
2025-03-31 21:30:45 +11:00
Liam Thompson
c73b3b18b2
Update limitations.md (#125893) (#125917)
(cherry picked from commit 74e4ce23e0)

Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co>
2025-03-31 19:25:52 +11:00
Bogdan Pintea
b2a007800e
ESQL: supplement docs on LIMIT (#125839) (#125888)
This adds a few extra details around how ESQL processes input docs and
how it limits output results.

Closes #125819
2025-03-29 06:33:10 +11:00
Craig Taverner
0722687e9a
9.0 esql docs backport (#125833)
Manual backport of two PRs: * #125155 * #125251 

Even though the docs are not needed in 9.0, due to all docs being
published off main, doing the backport makes future backports of
non-docs, but docs-adjacent PRs easier.
2025-03-28 21:22:05 +11:00
Alexander Spies
e39ef2b16a
ESQL: Improve LOOKUP JOIN page (#125688) (#125798) (#125829)
Forward port of #125688
2025-03-28 19:34:39 +11:00
Alexander Spies
46c90388c6
ESQL: Sync esql docs entirely to main (#125691)
This entirely syncs the contents of docs/reference/query-languages/esql with main, just so we can continue auto-backporting easily, which will continue to be relevant.
2025-03-26 18:41:28 +01:00
Bogdan Pintea
385db6aa0f
SQL: Docs: Drop examples of LIKE/RLIKE vs QUERY/MATCH equivalence (#125673) (#125689)
This drops the examples of LIKE/RLIKE vs QUERY/MATCH equivalence.
2025-03-27 03:54:16 +11:00
Liam Thompson
bbde3a016a
Clarify regex character range case insensitivity limitations (#125413) (#125423)
* Update regexp-syntax.md

9.x equivalent of https://github.com/elastic/elasticsearch/pull/125412

* use md syntax
2025-03-22 04:11:08 +11:00
Carlos Delgado
b08a6c035d
ES|QL: Add default values for match function options (#125282) (#125371) 2025-03-21 21:57:29 +11:00
Liam Thompson
d90c6b76a2
[9.0] [docs] Prepare for docs-assembler (#125118) (#125339)
* [docs] Prepare for docs-assembler (#125118)

* reorg files for docs-assembler and create toc.yml files

* fix build error, add redirects

* only toc

* move images

(cherry picked from commit 9bcd59596d)

# Conflicts:
#	docs/reference/aggregations/search-aggregations-pipeline-bucket-script-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-cumulative-cardinality-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-cumulative-sum-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-derivative-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-extended-stats-bucket-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-max-bucket-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-min-bucket-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-percentiles-bucket-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-stats-bucket-aggregation.md
#	docs/reference/aggregations/search-aggregations-pipeline-sum-bucket-aggregation.md
#	docs/reference/query-languages/esql/esql-commands.md
#	docs/reference/query-languages/esql/esql-lookup-join.md
#	docs/reference/query-languages/esql/esql-process-data-with-dissect-grok.md
#	docs/reference/query-languages/images/esql-lookup-join.png
#	docs/reference/query-languages/toc.yml
#	docs/reference/search-connectors/es-connectors-run-from-docker.md
#	docs/reference/text-analysis/analysis-apostrophe-tokenfilter.md
#	docs/reference/toc.yml

* remove markers

---------

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-03-20 22:20:12 +02:00
Liam Thompson
cebc46f401
Fix broken cross-repo links, versions in search connectors docker instructions (#123700) (#125341)
(cherry picked from commit 91c2654570)

# Conflicts:
#	docs/reference/elasticsearch-plugins/cloud/ec-adding-elastic-plugins.md
#	docs/reference/elasticsearch-plugins/cloud/ec-adding-plugins.md
#	docs/reference/elasticsearch/configuration-reference/elastic-cloud-serverless-elasticsearch-settings.md
#	docs/reference/query-languages/esql/esql-enrich-data.md
2025-03-20 21:38:57 +02:00
Liam Thompson
c36b4db253
[DOCS] fix external links (#124248) (#125340)
(cherry picked from commit 23be51a04f)

# Conflicts:
#	docs/reference/data-analysis/text-analysis/analysis-simplepattern-tokenizer.md
#	docs/reference/data-analysis/text-analysis/analysis-simplepatternsplit-tokenizer.md
#	docs/reference/query-languages/esql/_snippets/date-time-functions-orig.md
#	docs/reference/query-languages/esql/_snippets/functions/ceil.md
#	docs/reference/query-languages/esql/_snippets/functions/date_parse.md
#	docs/reference/query-languages/esql/_snippets/functions/description/floor.md
#	docs/reference/query-languages/esql/_snippets/functions/floor.md
#	docs/reference/query-languages/esql/_snippets/math-functions-orig.md
#	docs/reference/query-languages/query-dsl/query-dsl-geo-polygon-query.md

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-03-20 15:32:08 -04:00
Mike Pellegrini
963ed2089e
Mark semantic text as GA in docs (#124669) (#125300) 2025-03-20 23:38:23 +11:00
Lisa Cawley
39910b3fe6
[DOCS] Clean up Asciidoc links in markdown files (#125046) (#125231) 2025-03-20 02:29:01 +11:00
Charlotte Hoblik
57885f3f7c
[Backport][9.0][DOCS] Restructure user settings reference pages (#125194)
* add signposts to docs-content (#124866)

* [DOCS] Restructure user settings reference pages (#125000)

* add elasticsearch settings page

* add logo to ech applicable settings

* removing ECH settings page

* removing duplicate information from ECH

* move settings to correcponding page

* update configuration page

* fix link

* Add applies_to frontmatter to auditing settings

* remove duplicate how-to pages

* fix broken links

* replce cloud icon text

* adjust settings pages

* add applies_to tag

---------

Co-authored-by: lcawl <lcawley@elastic.co>

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2025-03-19 20:52:15 +11:00
John Wagster
856e7bde94
[DOCS] Opster Migration: Nested bool query addition (#124455) (#125177)
added section related to nested bool queries to provide a more clear example and clean up surrounding language and grammatical issues

Co-authored-by: Kofi B <kofi.bartlett@elastic.co>
2025-03-19 13:06:28 +11:00
Svilen Mihaylov
842711445d
[9.0] Added optional parameters to QSTR ES|QL function (#121787) (#125114)
* Added optional parameters to QSTR ES|QL function (#121787)

Adds options to QSTR function.

#118619 added named function parameters. This PR uses this mechanism for allowing query string function parameters, so query string parameters can be used in ES|QL.

Closes #120933

(cherry picked from commit ee4bcac1db)

# Conflicts:
#	x-pack/plugin/esql/qa/testFixtures/src/main/resources/qstr-function.csv-spec
#	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java

* [CI] Auto commit changes from spotless

* Fix compilation error

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-03-19 05:40:10 +11:00
Craig Taverner
a8b2428dd1
9.0 backport docs query languages (#125113)
* Restructure query-languages docs files for clarity (#124797)

In a few previous PR's we restructured the ES|QL docs to make it possible to generate them dynamically.

This PR just moves a few files around to make the query languages docs easier to work with, and a little more organized like the ES|QL docs.

A bit part of this was setting up redirects to the new locations, so other repo's could correctly link to the elasticsearch docs.

* After running tests, we revert a few features

* Fix build.gradle and improved some generating code

* After running tests

* Update x-pack/plugin/esql/build.gradle
2025-03-19 04:24:11 +11:00
Craig Taverner
d3d9a00fb1
[9.0] ESQL autogenerate docs v3 (#124312) (#124786)
Manual backport of https://github.com/elastic/elasticsearch/pull/124312
and https://github.com/elastic/elasticsearch/pull/124742
2025-03-14 06:33:18 +11:00
Charlotte Hoblik
40a3716a12
[DOCS][Backport][9.0] Reference cleanup (#124720)
* Fix external URI images (#124350)

* [DOCS] Plugin management reference cleanup (#124578)

* add content to plugin management

* add content to Plugin Management

* Update docs/reference/elasticsearch-plugins/plugin-management.md

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>

* fix applies-to tag

* add ech to docset.yml

---------

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>

---------

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
2025-03-13 11:55:40 +01:00
Carlos Delgado
a4af548e43
ES|QL - Add scoring for full text functions disjunctions (#121793) (#124573) 2025-03-11 17:43:21 +01:00
Liam Thompson
00b1373cba
Remove subs attribute (#124551) (#124560)
(cherry picked from commit 435d1db5b9)

Co-authored-by: Jan Calanog <nejcalanog@gmail.com>
2025-03-11 23:38:35 +11:00
David Kilfoyle
b7c9af101b
[Docs] Fix cross-repo links to Beats docs (#124360) (#124377)
Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-03-08 07:05:36 +11:00
Liam Thompson
8275ac8d1f
Split ESQL functions/operators docs files (#123904) (#124214)
* Port from asciidocalypse

* Fix links for operator lists

* Remove unused image files after moving/editing them

* Fix lists links

* Fix like/rlike links

* Fix remaining bad references to /elasticsearch/docs

* Fix logstash and beats references

* Fix logstash and beats references

* Fix image links

(cherry picked from commit efe7379e67)

Co-authored-by: Craig Taverner <craig@amanzi.com>
2025-03-06 16:58:30 +01:00
Liam Thompson
b98606e712
[9.0] [docs] Migrate docs from AsciiDoc to Markdown (#123507) (#124124)
* [docs] Migrate docs from AsciiDoc to Markdown (#123507)

* delete asciidoc files

* add migrated files

* fix errors

* Disable docs tests

* Clarify release notes page titles

* Revert "Clarify release notes page titles"

This reverts commit 8be688648d.

* Comment out edternal URI images

* Clean up query languages landing pages, link to conceptual docs

* Add .md to url

* Fixes inference processor nesting.

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
(cherry picked from commit b7e3a1e14b)

# Conflicts:
#	docs/build.gradle
#	docs/reference/migration/index.asciidoc
#	docs/reference/migration/migrate_9_0.asciidoc
#	docs/reference/release-notes.asciidoc
#	docs/reference/release-notes/9.0.0.asciidoc
#	docs/reference/release-notes/highlights.asciidoc

* Fix build file

* Really fix build file

---------

Co-authored-by: Colleen McGinnis <colleen.j.mcginnis@gmail.com>
2025-03-06 07:53:46 +01:00