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

[FEATURE] Implement IndexTemplate related methods in RestIndexTemplate #171

Open
ymombrun opened this issue Oct 12, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@ymombrun
Copy link

Is your feature request related to a problem?

Since version 5.1 of spring-data-elasticsearch, various methods from IndexOperation interface have been added and a few other have been marked as deprecated. For instance to check if a template exist, deprecated method is existsTemplate while methods existsComponentTemplate and existsIndexTemplate have been added.
Unfortunately when trying to remove any deprecated call from my project code relying on this, I got a UnsupportedOperationException. Indeed inside RestIndexTemplate (from spring-data-opensearch) there are 8 methods throwing UnsupportedOperationException("not implemented"); all related to index and component template CRUD.

What solution would you like?

I'd like that the new component and index template related methods were implemented so that I can use them and not relying on deprecated API in my project (which triggers warning in my CI that I can't solve yet).

What alternatives have you considered?

I keep relying on the deprecated API, but then when spring-data-elasticsearch will remove the deprecated methods from the interface (in 5.2 for instance).

Do you have any additional context?

The elastic search specific implementation from spring-data-elasticsearch is (in release 5.1.4) at the same status, methods not implemented.

@ymombrun ymombrun added enhancement New feature or request untriaged labels Oct 12, 2023
@dblock
Copy link
Member

dblock commented Jun 17, 2024

Catch All Triage - 1 2 3 4 5

@dblock dblock removed the untriaged label Jun 17, 2024
@dblock
Copy link
Member

dblock commented Jun 17, 2024

@ymombrun Want to try to implement this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants