Parameter and Command Reference > Connector Framework Server Parameters > Import Tasks and their Parameters > Import Tasks

Import Tasks
This section describes Import tasks.
To define an Import task, use the following line in the CFS configuration file:
[Pre] | [Post] | [Update] | [Delete]N=TaskType
where TaskType is the type of import task that you want to use. For example:
Pre0=HtmlExtraction
Lua
The Lua import task is used to run a Lua script.
The Lua import task can be configured as a Pre, Post, Update or Delete task.
You must specify the path of the script. For example:
Post0=Lua:C:\Scripts\posttask1.lua
IDXWriter
The IDXWriter import task is used to call the CFS IDX Writer. The IDX Writer is included in the Connector Framework server and generates an IDX file.
The IdxWriter import task can be configured as a Pre, Post, Update or Delete task. The parameters that are passed to the task are specified in an optional, named section of the configuration file. For example:
Post0=IdxWriter:IdxWriting
[IdxWriting]
IdxWriterFilename=Job0.idx
IdxWriterMaxSizeKBs=100
IdxWriterArchiveDirectory=./IDXArchive
For information about the parameters used to configure this task, see IdxWriter Import Task Parameters.
TextToDocs
The TextToDocs import task is used to split a file into a number of documents (a main document, and one or more child documents). This task results in a number of metadata and DRECONTENT documents being generated. The original document is discarded and is not filtered using Keyview.
The TextToDocs import task is always configured as a Pre task. The parameters that are passed to the task are specified in a named section of the configuration file. For example:
[ImportTasks]
Pre0=TextToDocs:TextToDocsSection
 
[TextToDocsSection]
//Settings to configure how to process the documents.
 
For information about the parameters used to configure this task, see TextToDocs Import Task Parameters.
Sectioner
The Sectioner import task is used to split a large document into smaller sections.
The Sectioner import task is always configured as a Post task. The parameters that are passed to the task are specified in a named section of the configuration file. For example:
Post0=Sectioner:Sectioning
[Sectioning]
SectionerMaxBytes=3000
SectionMinBytes=1500
If a configuration file section is not specified, [Sectioning] is assumed.
For information about the parameters used to configure this task, see Sectioner Import Task Parameters.
ImportFile
The ImportFile import task imports a file and adds its content to the document being processed.
The ImportFile import task can be configured as a Pre or Post task. To define an ImportFile import task, use the following line in the configuration file:
[Pre] | [Post]N=ImportFile:fieldname
where fieldname is a field that contains the file name of the document to import.
HtmlExtraction 
The HtmlExtraction import task is used to extract the relevant parts from an HTML page, leaving the irrelevant parts (for example advertisements). It is used only with HTML documents.
The HtmlExtraction import task is always configured as a Pre task. To define an HTMLExtraction import task, use the following line in the configuration file:
Pre0=HtmlExtraction