Run a Lua Script using an Ingest Action
To run a Lua script on documents that are sent for ingestion, use an Ingest Action.
To run a Lua script using an Ingest Action
- Open the connector’s configuration file.
-
Find one of the following sections in the configuration file:
- To run a Lua script on all documents retrieved by a specific task, find the
[TaskName]
section. - To run a Lua script on all documents that are sent for ingestion, find the
[Ingestion]
section.
NOTE: If you set the
IngestActions
parameter in a[TaskName]
section, the connector does not run anyIngestActions
set in the[Ingestion]
section for that task. - To run a Lua script on all documents retrieved by a specific task, find the
-
Use the
IngestActions
parameter to specify the path to your Lua script. For example:IngestActions=LUA:C:\Autonomy\myScript.lua
- Save and close the configuration file.