Versions Compared

Key

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

...

Info

JavaScript functions imported via either of the two means described above are passed to the Rhino script engine via the ScriptEngine.eval method which allows the functions to be called within the scope of the current document being harvested. Examples of imported functions can be found below.Note: the

The "script" context does not have access to any of the objects described below (like "_doc"), it .  It can only be used for declaring functions to be used in the entity/association/docGeo scriptlets.

...

Javascript Use Cases

In general terms, theuse the use of javascript for IKANOWs falls into several major categories

...

When data is ingested into IKANOWs it is converted into documents.  The various elements of the processing pipeline can then act on these documents to get metadata.  Metadata objects which are can then be made available to functions and inline scripts.

...

For more information about using javascript to get metadata and for detailed examples and descriptions, see Content metadata, Manual text transformation.

...