OpenSearch/plugins/examples
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
..
script-expert-scoring Scripting: Add StatefulFactoryType as optional intermediate factory in script contexts (#24974) 2017-05-30 16:32:14 -07:00
build.gradle Scripting: Replace advanced and native scripts with ScriptEngine docs (#24603) 2017-05-11 12:15:16 -07:00