Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Add a Force-merge command #408

Merged
merged 2 commits into from Nov 22, 2016
Merged

Conversation

yrodiere
Copy link
Contributor

@yrodiere yrodiere commented Nov 2, 2016

This PR updates the Optimize command and adds support for the Force-merge API, which replaces the Optimize API as of ES 2.1.

The whole thing is pretty much a copy-paste of the Optimize command and its tests. I did not remove the Optimize command because it's still needed for users of Elasticsearch 2.0.

Note that this additional command is only "nice" when using ES 2.x, but it is actually required when using Elasticsearch 5.0, in which the Optimize API has been completely removed.

Related issue (kind of): #292

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 54.923% when pulling 9cd555d on yrodiere:force-merge-command into 0f6a143 on searchbox-io:master.

@ferhatsb ferhatsb merged commit b4617c5 into searchbox-io:master Nov 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants