Skip to content
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

Incorrectly ingesting templates in Elasticsearch >=7.8 #12495

Open
itsbicb4 opened this issue Jan 29, 2025 · 0 comments
Open

Incorrectly ingesting templates in Elasticsearch >=7.8 #12495

itsbicb4 opened this issue Jan 29, 2025 · 0 comments

Comments

@itsbicb4
Copy link

itsbicb4 commented Jan 29, 2025

In version of Elasticsearch 7.8 "template" api's were deprecated and replaced with "index_template" api's

GET _template # old way
GET _index_template # current way

Since last v7 of elasticsearch was 7.17 and current version of elasticsearch is 8.17 i think this should be replaced with support of only new way or at least add feature to chose in datahub recipes which index template api to use.

New: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html
Legacy: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html

In code template functions should be replace with new index_template functions
indices.get_template -> indices.get_index_template
Docs: https://elasticsearch-py.readthedocs.io/en/v8.17.1/api/indices.html

Wrong code example:

templates = self.client.indices.get_template()

@itsbicb4 itsbicb4 changed the title Incorrectly ingesting templates in Elasticsearch >7.8 Incorrectly ingesting templates in Elasticsearch >=7.8 Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant