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

© Copyright 2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm