Open topic with navigation

# 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 into IDOL Server.

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 KeyView has extracted sub-files, so run the script using a Post Import task. For example:

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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm