anchor.diff:  	<!--- lock File --->
   	<cffunction name="_lockFile" access="private" returntype="query">
   		<cfargument name="qry" required="true" type="query">
  +		<cfargument name="type" required="true" type="string">
   		<!--- Indexing --->
   		<cfset var _hosts = ListRemoveDuplicates(valuelist(arguments.qry.host_id)) />
   		<!--- Put query into var --->
  
positive.code: 		<!--- Update database and flush cache --->
  		<cfset _updateDb(qryfiles = _qryNew) />
  		<!--- Remove lock file --->
  		<cfset _removeLockFile(_qryNew) />
  		<!--- If cloud based remove the temp doc storage
  		<cfif config.conf_storage EQ "amazon">
  			<cfset _removeTempDocStore(_qryNew) />
  
negative.code: 				<!--- Log --->
  				<cfset console("#now()# ---------------------- Removing lock file of Host: #host_id#")>
  				<!--- Name of lock file --->
  				<cfset var lockfile = "lucene_#host_id#_#arguments.type#.lock">
  				<!--- Action --->
  				<cfif fileExists("#GetTempDirectory()#/#lockfile#")>
  					<cffile action="delete" file="#GetTempDirectory()#/#lockfile#" />
  