Fix reference to painless inside expression engine (#26528)
This was a simple copy/paste bug in an earlier refactoring.
This commit is contained in:
parent
8ba4ff3be0
commit
9834081254
|
@ -108,7 +108,7 @@ public class ExpressionScriptEngine extends AbstractComponent implements ScriptE
|
||||||
ExecutableScript.Factory factory = (p) -> new ExpressionExecutableScript(expr, p);
|
ExecutableScript.Factory factory = (p) -> new ExpressionExecutableScript(expr, p);
|
||||||
return context.factoryClazz.cast(factory);
|
return context.factoryClazz.cast(factory);
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("painless does not know how to handle context [" + context.name + "]");
|
throw new IllegalArgumentException("expression engine does not know how to handle script context [" + context.name + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
private SearchScript.LeafFactory newSearchScript(Expression expr, SearchLookup lookup, @Nullable Map<String, Object> vars) {
|
private SearchScript.LeafFactory newSearchScript(Expression expr, SearchLookup lookup, @Nullable Map<String, Object> vars) {
|
||||||
|
|
Loading…
Reference in New Issue