[DOCS][ESQL] Update additional docs for CPS#144300
[DOCS][ESQL] Update additional docs for CPS#144300leemthompo wants to merge 13 commits intoelastic:mainfrom
Conversation
🔍 Preview links for changed docs |
ℹ️ Important: Docs version tagging👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version. We use applies_to tags to mark version-specific features and changes. Expand for a quick overviewWhen to use applies_to tags:✅ At the page level to indicate which products/deployments the content applies to (mandatory) What NOT to do:❌ Don't remove or replace information that applies to an older version 🤔 Need help?
|
| You can use `ENRICH` with remote clusters. For detailed information about cross-cluster enrichment syntax and configuration, refer to [ENRICH across clusters](/reference/query-languages/esql/esql-cross-clusters.md#ccq-enrich). | ||
|
|
||
| ::::{note} | ||
| `ENRICH` is not supported in [cross-project search (CPS)](/reference/query-languages/esql/esql-cross-serverless-projects.md), because enrich policies are not available in {{serverless-short}}. |
There was a problem hiding this comment.
because enrich policies are not available in {{serverless-short}}.
Is this correct? I haven't heard that before, and based on this https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-enrich-get-policy that seems wrong?
There was a problem hiding this comment.
Discussed with @idegtiarenko. He thinks that ENRICH with ES|QL does work in serverless. He will add tests to confirm. If that's right and once that's done, we should remove this statement
There was a problem hiding this comment.
- removing provisionally and the removing
unavailabletag at top of page
There was a problem hiding this comment.
@idegtiarenko confirmed that enrich with ES|QL does work in serverless: https://github.com/elastic/elasticsearch-serverless/pull/5976
|
Pinging @elastic/core-docs (Team:Docs) |
luigidellaquila
left a comment
There was a problem hiding this comment.
Thanks @leemthompo, I had a quick look and there is at least one thing that needs to be fixed, see below
| @@ -0,0 +1,22 @@ | |||
| ### `project_routing` [esql-project_routing] | |||
There was a problem hiding this comment.
This is supposed to be a generated file.
We excluded it manually waiting for project_routing to become public, see https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/plan/QuerySettingsTests.java#L260-L280
The correct way to do this is to update the definition here https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/QuerySettings.java#L36 and re-run ProjectSettingsTests (after the manual override is removed)
If you want, I can take care of it, just let me know
There was a problem hiding this comment.
@luigidellaquila ah ok cool thanks, yeah if you don't mind taking care of that, that would be great
we'll have to wait until CPS goes live to merge that :)
docs/reference/query-languages/esql/_snippets/commands/layout/from.md
Outdated
Show resolved
Hide resolved
shainaraskas
left a comment
There was a problem hiding this comment.
hello, looks lovely. here are some thoughts and feelings
| ``` | ||
|
|
||
|
|
||
| In {{serverless-short}}, queries using an unqualified `<target>` automatically run across all linked projects with [cross-project search (CPS)](esql-cross-serverless-projects.md). Use `<project-alias>:<target>` to restrict the query to a specific project. {applies_to}`serverless: preview` |
There was a problem hiding this comment.
There was a problem hiding this comment.
also might want to be clearer that in stack you have to specify your indices always
There was a problem hiding this comment.
hopefully addressed by 7afa15a
with TODO for that final linkeroo
docs/reference/query-languages/esql/_snippets/commands/layout/from.md
Outdated
Show resolved
Hide resolved
docs/reference/query-languages/esql/_snippets/commands/layout/enrich.md
Outdated
Show resolved
Hide resolved
- enrich.md: remove incorrect note that mode param doesn't apply in CPS - from.md: state default behavior (all projects) in CPS section - esql-cross-clusters.md: make serverless note more explicit - esql-lookup-join.md: promote CPS to sibling section (not nested under cross-cluster) - esql-multi.md: merge upstream subquery addition; add projects to intro
Follow up to #144206
Note
See https://www.elastic.co/docs/reference/query-languages/esql/esql-cross-serverless-projects for the main ESQL CPS page
Summary
New file:
project_routing.md — documents the project_routing SET parameter (serverless preview)
Updated files:
toc.md — includes project_routing.md
esql-cross-clusters.md — top note pointing serverless users to the CPS page; new H2 "Query across serverless projects" at the bottom with a link
esql-multi.md — added "Query across serverless projects" as a third bullet (serverless: preview)
esql-lookup-join.md — added CPS note alongside the Cross-cluster support section
esql-enrich-data.md — added note that ENRICH is not supported in CPS
esql-multi-index.md — added note pointing serverless users to CPS for qualified index expression syntax
from.md — tagged existing "Query remote clusters" as stack-only; added a parallel serverless entry for CPS
enrich.md — added a note under mode parameter that it doesn't apply in CPS
🤖
Claude Code helped