Class ForceMergeRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder<ForceMergeRequest,ForceMergeResponse,ForceMergeRequestBuilder>
org.elasticsearch.action.admin.indices.forcemerge.ForceMergeRequestBuilder
public class ForceMergeRequestBuilder
extends BroadcastOperationRequestBuilder<ForceMergeRequest,ForceMergeResponse,ForceMergeRequestBuilder>
A request to force merge one or more indices. In order to force merge all
indices, pass an empty array or
null
for the indices.
setMaxNumSegments(int)
allows to control the number of segments to force
merge down to. By default, will cause the force merge process to merge down
to half the configured number of segments.-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionForceMergeRequestBuilder(ElasticsearchClient client, ForceMergeAction action)
-
Method Summary
Modifier and TypeMethodDescriptionsetFlush(boolean flush)
Should flush be performed after the merge.setMaxNumSegments(int maxNumSegments)
Will force merge the index down to <= maxNumSegments.setOnlyExpungeDeletes(boolean onlyExpungeDeletes)
Should the merge only expunge deletes from the index, without full merging.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions, setTimeout
-
Constructor Details
-
ForceMergeRequestBuilder
-
-
Method Details
-
setMaxNumSegments
Will force merge the index down to <= maxNumSegments. By default, will cause the merge process to merge down to half the configured number of segments. -
setOnlyExpungeDeletes
Should the merge only expunge deletes from the index, without full merging. Defaults to full merging (false
). -
setFlush
Should flush be performed after the merge. Defaults totrue
.
-