[FIX] Fix update parser to accept script_id

This commit is contained in:
Brian Murphy 2014-07-22 14:22:57 +01:00
parent 3c142e550d
commit 7d9b012ca1
1 changed files with 4 additions and 0 deletions

View File

@ -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)) {