Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Starting with either the raw content (or the content transformed by a preceding manual or automated text pipeline element), applies the javascript, regex, or xpath transformation and writes the output to the document's full text (or description, or title, or one of the textual metadata fields).

...

Code Block
{
	"display": string,
	"text": [
	{
		"fieldName":string,// One of "fullText", "description", "title"
		"script":string,// The script/xpath/javascript expression (see scriptlang below)
		"flags":string, // Standard Java regex field (regex/xpath only), plus "H" to decode HTML
		"replacement":string, // Replacement string for regex/xpath+regex matches, can include capturing groups as $1 etc
		"scriptlang":string, // One of "javascript", "regex", "xpath"
	}
	//..
	]
} 

Description

Using manual text transformation you can specify the data source for your script to work on.  The script is used to enrich the data from the data sources so it can be outputted as metadata for the creation of advanced entities and associations.

...

Javascript can also return more complex objects, arrays of objects, or array of primitives.

 

...

Anchor
regex
regex
Regex

Log File

Source:

Consider the following alarm logs which include a record of device alerts, including their network and physical locations.

...