.put("type", DataTypes.FLOAT.id())
.map()
))
.map();
SearchContext ctx = prepareScriptParams(params);
assertThat(ctx.operatorArgs.size(), is(2));
AbstractScalarScriptFactory.WrappedArgument arg1 = ctx.operatorArgs.get(0);
assertThat(arg1, instanceOf(ScalarArgument.class));
ScalarArgument scalarArg1 = (ScalarArgument) arg1;
assertThat(scalarArg1.getType(), is((DataType)DataTypes.LONG));