Overview
Provides source builders who need to add javascript to the enrichment process with a single global set of variables and functions that can be used in the individual "scriptlets" other elements provide. The scripts provided (and same for the inputs) are executed once per source per harvest cycle.
TODO
Format
TOD convert to JSON
Code Block |
---|
TODO |
Legacy documentation:
...
| ||
public static class GlobalScriptPojo {
public List<String> imports; // An optional list of URLs that get imported before the scripts below are run
public List<String> scripts; // A list of (java)script code blocks that are evaluated in order (normally only need to specify one)
public String scriptlang; // Currently only "javascript" is supported
} |
Legacy documentation, replaces the following:
- StructuredAnalysis object (replaces script and scriptFiles)
- UnstructuredAnalysis object (replaces script)
- Feed object (replaces searchConfig.globals)
TODO
Description
Legacy documentation:
TODO
Examples
TODO