Skip to content

Conversation

@UralRoman
Copy link

Implemented DSL for Index Lifecycle management politcs

@UralRoman UralRoman mentioned this pull request Jul 17, 2025
@apavlychev
Copy link
Contributor

@Philippus Are there any problems to merge this PR ?

Copy link
Owner

@Philippus Philippus left a 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
Copy link
Owner

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],
Copy link
Owner

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.

Copy link
Author

@UralRoman UralRoman Oct 21, 2025

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.

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

Successfully merging this pull request may close these issues.

3 participants