public interface NativeScriptFactory
ExecutableScript or SearchScript. Note,
if this factory creates SearchScript, it must extend AbstractSearchScript.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of the script factory
|
boolean |
needsScores()
Indicates if document scores may be needed by the produced scripts.
|
ExecutableScript |
newScript(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a new instance of either a
ExecutableScript or a SearchScript. |
ExecutableScript newScript(@Nullable java.util.Map<java.lang.String,java.lang.Object> params)
ExecutableScript or a SearchScript.params - The parameters passed to the script. Can be null.boolean needsScores()
true if scores are needed.java.lang.String getName()