diff --git a/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java b/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java
index eea372d1103..6ab9b51efd0 100644
--- a/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java
+++ b/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java
@@ -78,6 +78,12 @@ public class UpdateRequestBuilder extends InstanceShardOperationRequestBuilder
+ * The script works with the variable ctx
, which is bound to the entry,
+ * e.g. ctx._source.mycounter += 1
.
+ *
+ * @see #setScriptLang(String)
+ * @see #setScriptParams(Map)
*/
public UpdateRequestBuilder setScript(String script) {
request.script(script);
@@ -86,6 +92,10 @@ public class UpdateRequestBuilder extends InstanceShardOperationRequestBuilder
+ * Default: mvel
+ *
+ * Ref: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-scripting.html */ public UpdateRequestBuilder setScriptLang(String scriptLang) { request.scriptLang(scriptLang);