[FIX] Fix update parser to accept script_id
This commit is contained in:
parent
3c142e550d
commit
7d9b012ca1
|
@ -588,6 +588,10 @@ public class UpdateRequest extends InstanceShardOperationRequest<UpdateRequest>
|
|||
currentFieldName = parser.currentName();
|
||||
} else if ("script".equals(currentFieldName)) {
|
||||
script = parser.textOrNull();
|
||||
scriptType = ScriptService.ScriptType.INLINE;
|
||||
} else if ("script_id".equals(currentFieldName)) {
|
||||
script = parser.textOrNull();
|
||||
scriptType = ScriptService.ScriptType.INDEXED;
|
||||
} else if ("params".equals(currentFieldName)) {
|
||||
scriptParams = parser.map();
|
||||
} else if ("lang".equals(currentFieldName)) {
|
||||
|
|
Loading…
Reference in New Issue