anchor.diff:  					host_id : '#host_id#',
   					create_time : dateformat(qry_doc.create_time, 'yyyymmdd'),
   					change_time : dateformat(qry_doc.change_time, 'yyyymmdd'),
  -					file_type : qry_doc.file_type
  +					file_type : qry_doc.file_type,
  +					is_file : qry_doc.is_file
   				} />
   				<!--- Add result to qoq_doc --->
   				<cfset QueryAddrow(query = qoq_doc, data = q) />
  
positive.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
  		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#">
  
negative.code: 					<cfset console(cfcatch)>
  				</cfcatch>
  			</cftry>
  		</cfif>
  		<!--- Decide on the key --->
  		<cfif the_file EQ "">
  			<cfset var thekey = qry.id>
  		<cfelse>
  			<cfset var thekey = the_file>
  			<!--- Set key properly --->
  			<cfset QuerySetcell( qry, "is_file", 'true' ) />
  		</cfif>
  		<!--- Set key properly --->
  		<cfset QuerySetcell( qry, "thekey", thekey ) />
  		<!--- <cfset QuerySetcell( qry, "thekey", qry.id ) /> --->
  		<!--- Return --->
  		<cfreturn qry />
  	</cffunction>
  