- 
                Notifications
    You must be signed in to change notification settings 
- Fork 689
Elastic index lifecycle management politics support #3546
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: series/8.x
Are you sure you want to change the base?
Conversation
| @Philippus Are there any problems to merge this PR ? | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase this on the current default branch?
| RolloverHandlers | ||
| } | ||
| import com.sksamuel.elastic4s.handlers.indexlifecyclemanagement.IndexLifecycleManagementHandlers | ||
| import com.sksamuel.elastic4s.handlers.indexlifecyclemanagement.IndexLifecycleManagmentHandlers | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IndexLifecycleManagementHandlers is the correct spelling.
|  | ||
| case class IndexLifecyclePolicy( | ||
| name: String, | ||
| phases: List[IndexLifecyclePolicyPhase], | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe a Map is more appropriate here? Then you don't need to override the equals method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of this solution is that the user can use only the phases that exist in the API. The user should use the phase enumeration rather than create the phases themselves. Therefore, Map will not help here.
Implemented DSL for Index Lifecycle management politcs