anchor.diff:  				</cfscript>
   				<cfcatch type="any">
   					<cfset console("#now()# ---------------------- ERROR")>
  +					<cfset console(cfcatch)>
  +				</cfcatch>
  +			</cftry>
  +			<cftry>
  +				<cfscript>
  +					args = {
  +					query : qry_records_files,
  +					collection : h,
  +					category : "category",
  +					categoryTree : "id",
  +					key : "thekey",
  +					title : "id",
  +					body : "id",
  +					custommap :{
  +						id : "id",
  +						filename : "filename",
  +						filenameorg : "filenameorg",
  +						keywords : "keywords",
  +						description : "description",
  +						rawmetadata : "rawmetadata",
  +						extension : "theext",
  +						author : "author",
  +						rights : "rights",
  +						authorsposition : "authorsposition", 
  +						captionwriter : "captionwriter", 
  +						webstatement : "webstatement", 
  +						rightsmarked : "rightsmarked",
  +						labels : "labels",
  +						customfieldvalue : "customfieldvalue",
  +						folderpath : "folderpath",
  +						folder : "folder",
  +						host_id : "host_id",
  +						create_time : "create_time",
  +						change_time : "change_time",
  +						file_type : "file_type"
  +						}
  +					};
  +					results = CollectionIndexfile( argumentCollection=args );
  +				</cfscript>
  +				<cfcatch type="any">
  +					<cfset console("#now()# ---------------------- ERROR INDEXING FILES")>
   					<cfset console(cfcatch)>
   				</cfcatch>
   			</cftry>
  
positive.code: 		<cfset QuerySetcell( qry, "keywords", keys ) />
  		<cfset QuerySetcell( qry, "description", desc ) />
  		<!--- Index only doc files --->
  		<!--- <cfif qry.link_kind NEQ "url" AND arguments.notfile EQ "F">
  			<cftry>
  				<!--- Get assetpath of each host (could be different) --->
  				<cfset var assetPath = getAssetPath(arguments.hostid, arguments.prefix) />
  				<!--- Nirvanix or Amazon --->
  				<cfif (arguments.storage EQ "amazon" OR arguments.storage EQ "akamai")>
  					<!--- Check if windows or not --->
  					<cfif ! _isWindows()>
  						<cfset qry.lucene_key = replacenocase(qry.lucene_key," ","\ ","all")>
  						<cfset qry.lucene_key = replacenocase(qry.lucene_key,"&","\&","all")>
  						<cfset qry.lucene_key = replacenocase(qry.lucene_key,"'","\'","all")>
  					</cfif>
  					<!--- Index: Update file --->
  					<cfif fileExists(qry.lucene_key)>
  						<cfset var the_file = qry.lucene_key>
  					</cfif>
  				<!--- Local Storage --->
  				<cfelseif qry.link_kind NEQ "lan" AND arguments.storage EQ "local" AND fileexists("#assetpath#/#arguments.hostid#/#qry.folder#/#qry.category#/#qry.id#/#qry.filenameorg#")>
  					<!--- Index: Update file --->
  					<cfset var the_file = "#assetpath#/#arguments.hostid#/#qry.folder#/#qry.category#/#qry.id#/#qry.filenameorg#">
  				<!--- Linked file --->
  
negative.code: 		<!--- Query Record --->
  		<cfquery name="qry" datasource="#application.razuna.datasource#">
  	    SELECT DISTINCT f.host_id collection, f.file_id id, f.folder_id_r folder, f.file_name filename, f.file_name_org filenameorg, f.link_kind, f.lucene_key, '0' AS description, '0' AS keywords, 'doc' as category, f.file_meta as rawmetadata, 'doc' as thecategory, f.file_extension theext, x.author, x.rights, x.authorsposition, x.captionwriter, x.webstatement, x.rightsmarked, '0' as thekey, f.file_create_time as create_time, f.file_change_time as change_time,
  	    	'original' as file_type, 'false' as is_file
  		FROM #arguments.prefix#files f 
  		LEFT JOIN #arguments.prefix#files_xmp x ON f.file_id = x.asset_id_r AND x.host_id = <cfqueryparam cfsqltype="cf_sql_numeric" value="#arguments.hostid#">
  		WHERE f.file_id = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#arguments.file_id#">
  