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

IndexTemplate doesn't support get_template #1508

Open
selimt opened this issue Jun 7, 2021 · 0 comments
Open

IndexTemplate doesn't support get_template #1508

selimt opened this issue Jun 7, 2021 · 0 comments

Comments

@selimt
Copy link

selimt commented Jun 7, 2021

Currently we can use the IndexTemplate class to save a template as follows:

DocumentClass._index.as_template(template_name).save()

but we can not retrieve an already existing template that uses the es.indices.get_template() api.

We sometimes need this in our unittests to make sure that the template was created correctly.

Can this functionality be added to the IndexTemplate class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants