Skip to content

Commit d9fdcf7

Browse files
Refine ESQL docs handling of applies_to (elastic#125835) (elastic#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 <[email protected]>
1 parent c73b3b1 commit d9fdcf7

File tree

16 files changed

+320
-112
lines changed

16 files changed

+320
-112
lines changed

docs/reference/query-languages/esql/_snippets/functions/layout/categorize.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/kql.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/match.md

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/qstr.md

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/term.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/to_lower.md

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/to_upper.md

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/layout/values.md

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/esql-commands.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,6 @@ FROM employees
666666
## `LOOKUP JOIN` [esql-lookup-join]
667667

668668
::::{warning}
669-
```{applies_to}
670-
stack: preview 9.0, coming 9.1
671-
serverless: preview
672-
```
673669
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
674670
::::
675671

@@ -753,10 +749,6 @@ FROM Left
753749
## `MV_EXPAND` [esql-mv_expand]
754750

755751
::::{warning}
756-
```{applies_to}
757-
stack: preview 9.0, coming 9.1
758-
serverless: preview
759-
```
760752
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
761753
::::
762754

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/FunctionAppliesTo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
String version() default "";
1818

1919
String description() default "";
20+
21+
boolean serverless() default true;
2022
}

0 commit comments

Comments
 (0)