OpenSearch/modules/lang-painless
Ryan Ernst 7c1211d2ed Scripting: Add StatefulFactoryType as optional intermediate factory in script contexts (#24974)
ScriptContexts currently understand a FactoryType that can produce
instances of the script InstanceType. However, for search scripts, this
does not work as we have the concept of LeafSearchScript that is created
per lucene segment. This commit effectively renames the existing
SearchScript class into SearchScript.LeafFactory, which is a new,
optional, class that can be defined within a ScriptContext.
LeafSearchScript is effectively renamed back into SearchScript. This
change allows the model of stateless factory -> stateful factory ->
script instance to continue, but in a generic way that any script
context may take advantage of.

relates #20426
2017-05-30 16:32:14 -07:00
..
licenses merge master 2016-06-11 13:23:17 -04:00
src Scripting: Add StatefulFactoryType as optional intermediate factory in script contexts (#24974) 2017-05-30 16:32:14 -07:00
build.gradle Test: Move flag to painless tests (#24494) 2017-05-04 13:11:09 -04:00