anchor.diff:  			<!--- Log --->
   			<cfset console("#now()# ---------------------- Checking the lock file for Collection: #host_id#")>
   			<!--- Name of lock file --->
  -			<cfset var lockfile = "lucene_#host_id#.lock">
  +			<cfset var lockfile = "lucene_#host_id#_#arguments.type#.lock">
   			<!--- Check if lucene.lock file exists and a) If it is older than a day then delete it or b) if not older than a day them abort as its probably running from a previous call --->
   			<cfset var lockfilepath = "#GetTempDirectory()#/#lockfile#">
   			<cfset var lockfiledelerr = false>
  
positive.code: 		<cfset console("#now()# ---------------------- Starting removal")>
  		<!--- Get Config --->
  		<cfset var config = getConfig()>
  		<!--- Grab hosts --->
  		<cfset var _qryHosts = _qryHosts()>
  		<!--- Grab records to remove --->
  		<cfset var _qryRecords = _qryRemoveRecords(prefix=config.conf_db_prefix, dbtype=config.conf_db_type, qryhosts=_qryHosts)>
  		<!--- Remove records in Lucene --->
  		<cfset _removeFromIndex(qryrecords=_qryRecords,prefix=config.conf_db_prefix)>
  		<!--- All done remove records in database --->
  		<cfset _removeFromDatabase(_qryRecords)>
  		<!--- Log --->
  		<cfset console("#now()# ---------------------- Finished removal")>
  		<!--- Return --->
  
negative.code: 	<!--- Remove lock file --->
  	<cffunction name="_removeLockFile" access="private">
  		<cfargument name="qry_remove_lock" required="true" type="query">
  		<cfargument name="type" required="true" type="string">
  		<!--- Param --->
  		<cfset var host_id = "">
  		<!--- Valuelist hosts --->
  