Connector Framework Server 25.3
Connector Framework Server Help

# IndexLuaScript

The path to a Lua script to run on documents before they are indexed. You can use a Lua script to manipulate the documents before they are indexed.

If you set this parameter for a single indexing task, modifications to documents do not affect the same documents passed to other indexes.

The script must define a `handler` function:

    function handler(document, operation)
         -- do something
         return true
     end

The `operation` argument specifies the documents on which you want to run the script. This argument is a string that you can set to `add`, `update`, or `remove`.

To index the document the `handler` function must return `true`. To discard the document, return `false`.

Type: | String
Default: |
Required: | No
Configuration Section: | Any section specified by `IndexerSectionN` or Indexing
Example: | `IndexLuaScript=index.lua`
See Also: |

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: IndexLuaScript