-
Couldn't load subscription status.
- Fork 3.2k
feat(elasticsearch): support for composable index templates #15089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(elasticsearch): support for composable index templates #15089
Conversation
Co-authored-by: sergio.gomez <[email protected]>
|
Cursor Agent can help with this pull request. Just |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Co-authored-by: sergio.gomez <[email protected]>
Co-authored-by: sergio.gomez <[email protected]>
Co-authored-by: sergio.gomez <[email protected]>
…te-ingestion-issue-5643
Fix(elasticsearch): Ingest both legacy and composable index templates
Problem:
The Elasticsearch/OpenSearch source connector previously only ingested legacy index templates (using the
get_template()API). Modern OpenSearch (v2.17) and Elasticsearch (7.8+) also support composable index templates, which are accessed via a different API (get_index_template()) and have a distinct data structure. This led to incomplete index template ingestion, where only legacy templates were discovered, or none if only composable templates existed.Solution:
This PR updates the Elasticsearch source to support both types of index templates:
get_workunits_internalmethod now attempts to fetch both legacy and composable index templates._extract_mcpsmethod has been enhanced to correctly parse the metadata (mappings, settings, aliases) from both legacy templates (root-level fields) and composable templates (fields nested undertemplate).Impact:
This bug fix ensures that all index templates (both legacy and composable) are now correctly ingested from OpenSearch and Elasticsearch clusters, providing comprehensive metadata coverage. The changes are backward compatible with older clusters that only use legacy templates.
Related Issue:
CUS-6603
Slack Thread