OpenSearch/modules/lang-expression
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 Upgrade to lucene-7.0.0-snapshot-a0aef2f 2017-05-19 10:20:55 -05:00
src Scripting: Add StatefulFactoryType as optional intermediate factory in script contexts (#24974) 2017-05-30 16:32:14 -07:00
build.gradle Build: Rework integ test setup and shutdown to ensure stop runs when desired (#23304) 2017-02-22 12:43:15 -08:00