ScriptEngineService
instead of using native scripts@Deprecated
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()
Deprecated.
Returns the name of the script factory
|
boolean |
needsScores()
Deprecated.
Indicates if document scores may be needed by the produced scripts.
|
ExecutableScript |
newScript(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
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()