Connector Framework Server 25.1
Connector Framework Server Help

# Append Sub File Indexes to the Document Identifier

You can configure CFS to automatically append sub-file indexes to document identifiers, before the documents are indexed.

To do this, use the lua script `identifiers.lua`, which is included with CFS in the `scripts` folder. The script is also included below:

    function handler( document )
       identifier = document:getFieldValue( "AUTN_IDENTIFIER" )

       if identifier then
          indices = document:getFieldValue( "SubFileIndexCSV" )

          if indices then
             indices = string.gsub(indices, ",", ".")
             document:setFieldValue("AUTN_IDENTIFIER", identifier .. "|" .. indices)
          end
       end

       return true
    end

You must run the script after File Content Extraction has extracted sub-files, so run the script using a Post Import task. For example:

    [ImportTasks]
    Post0=Lua:scripts/identifiers.lua

Copyright 2024 Open Text
Version 25.1 | Last updated January 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.1

Topic Title: Append Sub File Indexes to the Document Identifier