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

Set alias for an index with annotation upon creation. #2599

Open
AIRahimi opened this issue Jun 22, 2023 · 4 comments · May be fixed by #2905
Open

Set alias for an index with annotation upon creation. #2599

AIRahimi opened this issue Jun 22, 2023 · 4 comments · May be fixed by #2905
Labels
type: enhancement A general enhancement

Comments

@AIRahimi
Copy link
Contributor

https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html

The request body for index creation takes a mapping object, a setting object and an alias object. Today we can define the mapping and setting by annotation upon index creation.

It would be nice to be able to do this for alias as well.

@alias annotation to define aliases when creating index.

@AIRahimi
Copy link
Contributor Author

@sothawo Let me know if this is accepted. I can develop it and create PR.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 22, 2023
@sothawo
Copy link
Collaborator

sothawo commented Jun 25, 2023

That would be possible.

How would you define the attributes in the @Alias annotation that are possible, especially the filter? One possibility I see here would be to set this as a String property of the annotation and then pass this in wrapped in a wrapper string.

@sothawo sothawo added the status: waiting-for-feedback We need additional information before we can continue label Jun 25, 2023
@spring-projects-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jul 2, 2023
@AIRahimi
Copy link
Contributor Author

AIRahimi commented Jul 4, 2023

I am on a 3 weeks vacation and have not been able to look any closer at it, but yes that could be a good solution.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Jul 4, 2023
@sothawo sothawo added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Jul 12, 2023
@youssef3wi youssef3wi linked a pull request May 2, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants