diff --git a/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java b/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java index ed5b1ec8513..e65d2bdc55c 100644 --- a/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java +++ b/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java @@ -152,6 +152,16 @@ public class UpdateRequestBuilder extends BaseRequestBuilder* to indicate that all percolate queries should be run. + */ + public UpdateRequestBuilder setPercolate(String percolate) { + request.percolate(percolate); + return this; + } + @Override protected void doExecute(ActionListener listener) { client.update(request, listener);