Parameter and Command Reference > CFS Connector Actions > Synchronize Fetch Action

Synchronize Fetch Action
This action is used to search a repository for document updates and send these updates to an Ingestion module.
http://host:port/action=Fetch&FetchAction=Synchronize
                  [&Config=Base64_Config]
                  [&TaskSections=Section_CSV]
                  [&IngestActions=Document_Action_CSV]
Type: Asynchronous
 
Optional Base64 encoded configuration file. If this parameter is specified, then the encoded configuration options is used instead of the options in the connector configuration file.
The names of the task sections to use to perform synchronization. If this parameter is unspecified, all configured task sections are used.
This parameter specifies actions to perform on documents prior to being ingested. This can be a list of document actions of the form action:parameters processed from left to right. The available documents actions are:
*
META. Add a custom field to the document, specified as META:Fieldname=FieldValue
*
LUA. Execute a Lua script on the document, specified as LUA:Luascript.
Example: To add a field CATEGORY=FILESYSTEM to every document, specify the ingest action as:
Example
http://host:port/action=Fetch&FetchAction=Synchronize
Response
A sample response appears below. In this example, two tasks were performed as part of the synchronize (DIR1 and DIR2). Both of these found 10 new documents, but ingestion failed for all 20 documents.
<action>
 <documentcounts>
  <documentcount
   added="10"         collected="0"       deleted="0"
   errors="0"         holds="0"           ingestadded="0"
   ingestdeleted="0"  ingestfailed="10"   ingestupdated="0"
   inserted="0"       releasedholds="0"   seen="10"
   task="DIR1"        unchanged="0"       updated="0"/>
  <documentcount
   added="10"         collected="0"       deleted="0"
   errors="0"         holds="0"           ingestadded="0"
   ingestdeleted="0"  ingestfailed="10"   ingestupdated="0"
   inserted="0"       releasedholds="0"   seen="10"
   task="DIR2"        unchanged="0"       updated="0"
 </documentcounts>
 <fetchaction>SYNCHRONIZE</fetchaction>
 <tasks>
   <success>DIR1</success>
   <success>DIR2</success>
 </tasks>
 <token>MTAuMi4xMDUuMzQ6MTIzNDpGRVRDSDoxNDAyOTU3MzY4</token>
 <status>Finished</status>
 <queued_time>2009-Oct-15 14:44:32</queued_time>
 <time_in_queue>0</time_in_queue>
 <process_start_time>2009-Oct-15 14:44:32</process_start_time>
 <time_processing>3</time_processing>
 <process_end_time>2009-Oct-15 14:44:35</process_end_time>
</action>