Connector Framework Server 25.3
Connector Framework Server Help

# Lua Scripts Included With CFS

The CFS installation directory includes a `scripts` folder that includes the following Lua scripts:

Script | Description
--- | ---
`AddLanguageDetectionFields.lua` | Detects the language of a document’s content, using the Content component action `DetectLanguage`. The script then adds fields describing the language and encoding to the document’s metadata. The script demonstrates how to: send an action to an ACI server. parse the action response to a `LuaXmlDocument`. use the methods of `LuaXmlDocument` to extract data from the document. The script assumes that a Content component is installed on the local machine with an ACI port of 9000. You might need to modify these values. If you use this script, run it as a post import task so that it runs after File Content Extraction has extracted document content.
`CategorySuggestFromText.lua` | Sends a document to a Category component for categorization, and adds information about the matching categories to the document's metadata. For information about how to use this script, see Categorize Documents.
`filterdodgyfiles.lua` | An example script that demonstrates various ways to reject unwanted files, for example by file extension, by detecting the file format, or by analyzing the file content.
`identifiers.lua` | Adds sub-file indexes to the `AUTN_IDENTIFIER` document field of sub-files. This allows a connector to retrieve the sub-file, rather than the whole container, when the `collect` or `view` actions are used to retrieve the original file. If you use this script, you must run it as a post import task (so that it runs after File Content Extraction processes the documents). For more information about the `AUTN_IDENTIFIER` field, see AUTN_IDENTIFIER.
`mediaserver/*.lua` | These scripts run analysis on images, audio files, and video files by sending them to Media Server. For information about configuring media analysis, see Analyze Media.

NOTE: CFS also includes scripts for use with Named Entity Recognition. Some of these scripts are Named Entity Recognition post processing scripts, which modify the output from a Named Entity Recognition import task. The post processing scripts have the entry point `function processmatch (edkmatch)`, rather than `function handler (document)`. You must run a post processing script using the Eduction import task. Do not run a Named Entity Recognition post processing script using a Lua task. For more information about Named Entity Recognition Lua Post Processing, see Lua Post Processing. For information about the Named Entity Recognition scripts that are included with CFS, refer to the Named Entity Recognition User and Programming Guide.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Connector Framework Server 25.3

Topic Title: Lua Scripts Included With CFS