Skip to content

Comments

[JAY-737] Add the Index#force_merge method#56

Merged
sergio-bobillier merged 1 commit intomasterfrom
sb-JAY-737-force-merge
Feb 20, 2026
Merged

[JAY-737] Add the Index#force_merge method#56
sergio-bobillier merged 1 commit intomasterfrom
sb-JAY-737-force-merge

Conversation

@sergio-bobillier
Copy link
Collaborator

@sergio-bobillier sergio-bobillier commented Feb 13, 2026

The method starts a forced segment merge on the index.

More information about this procedure can be found here: https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge

The method does little in terms of logic, it basically forwards the request directly to the transport client. The only check it performs is making sure that the index has been set to read-only before starting the process.

@sergio-bobillier sergio-bobillier marked this pull request as ready for review February 13, 2026 13:36
@sergio-bobillier sergio-bobillier self-assigned this Feb 13, 2026
@sergio-bobillier sergio-bobillier marked this pull request as draft February 13, 2026 13:37
@sergio-bobillier sergio-bobillier force-pushed the sb-JAY-737-index-settings branch 2 times, most recently from 2d2a9fa to 33e243c Compare February 17, 2026 09:53
@sergio-bobillier sergio-bobillier force-pushed the sb-JAY-737-index-settings branch from 33e243c to 2879886 Compare February 19, 2026 09:21
Base automatically changed from sb-JAY-737-index-settings to master February 20, 2026 10:14
@sergio-bobillier sergio-bobillier marked this pull request as ready for review February 20, 2026 10:20
Copy link
Collaborator

@sheputis sheputis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this check is explained in detail in the URL above.

As we had discussed this is not actually the case, that url does not talk about setting the the index to read-only at all. Could you update the commit message? :)

The method starts a forced segment merge on the index.

More information about this procedure can be found here:
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge

The method does little in terms of logic, it basically forwards the
request directly to the transport client. The only check it performs is
making sure that the index has been set to read-only before starting
the process.
@sergio-bobillier sergio-bobillier merged commit 9b5fff8 into master Feb 20, 2026
2 checks passed
@sergio-bobillier sergio-bobillier deleted the sb-JAY-737-force-merge branch February 20, 2026 12:54
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