}
ScalarArgument function = ((ScalarArgument) operatorArgs.get(0));
// resolve operator
FunctionIdent operatorIdent = new FunctionIdent(operatorName, operatorArgTypes);
Operator operator = (Operator)functions.get(operatorIdent);
if (operator == null) {
throw new ScriptException(String.format("Cannot resolve operator with ident %s", operatorIdent));
}
return new SearchContext(function, operator, operatorArgs);