[FIX] normalize serialization of ScriptType in UpdateRequest
This commit is contained in:
parent
da5fb34163
commit
86dfad24fe
|
@ -651,7 +651,7 @@ public class UpdateRequest extends InstanceShardOperationRequest<UpdateRequest>
|
||||||
out.writeString(id);
|
out.writeString(id);
|
||||||
out.writeOptionalString(routing);
|
out.writeOptionalString(routing);
|
||||||
out.writeOptionalString(script);
|
out.writeOptionalString(script);
|
||||||
if (script != null && out.getVersion().onOrAfter(Version.V_1_3_0)) {
|
if (Strings.hasLength(script) && out.getVersion().onOrAfter(Version.V_1_3_0)) {
|
||||||
ScriptService.ScriptType.writeTo(scriptType, out);
|
ScriptService.ScriptType.writeTo(scriptType, out);
|
||||||
}
|
}
|
||||||
out.writeOptionalString(scriptLang);
|
out.writeOptionalString(scriptLang);
|
||||||
|
|
Loading…
Reference in New Issue