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