hart
asked on
Verity Search issues with CF 5
Hi Experts,
I am facing an issue with Coldfusion 5 Verity Search..
I know CF 5 is an outdated version but I do not have a choice to upgrade.
Ok I have a folder with 15,000 documents, It could be doc files, pdf's or txt's or rtf's or even images.
I need to run a search on these files [doc,rtf,pdf,txt] using verity search in CF 5..
I have done the following, but it fails
<CFSET sCollectionFilePath = "#GetDirectoryFromPath(Get CurrentTem platePath( ))#NewCVs\ ">
<CFTRY>
<CFCOLLECTION ACTION="DELETE" COLLECTION="CVCollection3" PATH="#sCollectionFilePath #">
<CFCATCH TYPE="Any">
</CFCATCH>
</CFTRY>
<CFCOLLECTION ACTION="CREATE" COLLECTION="CVCollection3" PATH="#sCollectionFilePath #">
Now this code gives me an error if try creating the same collection again, It says unable to create as already exists. But I do not see these folders in the path that I have mentioned.
But This code did run once and I assumed the collection has been created.
But When I try to use CFINDEX, I get the following error -
<CFSET sCollectionFilePath = "#GetDirectoryFromPath(Get CurrentTem platePath( ))#NewCVs\ ">
<CFTRY>
<CFCOLLECTION ACTION="DELETE" COLLECTION="CVCollection3" PATH="#sCollectionFilePath #">
<CFCATCH TYPE="Any">
</CFCATCH>
</CFTRY>
<CFCOLLECTION ACTION="CREATE" COLLECTION="CVCollection3" PATH="#sCollectionFilePath #">
<CFINDEX action = "update" collection = "CVCollection3"
key = "#sCollectionFilePath#" type = "path"
recurse = "No">
but when i run this i get the following error
Error occurred in tag CFINDEX Error # -23 [ffe9] VdkCollectionSubmit
Now I am not sure whether everything should be written in one page or not..
Please help as this is very urgent..
Thanks & Regards
Hart
I am facing an issue with Coldfusion 5 Verity Search..
I know CF 5 is an outdated version but I do not have a choice to upgrade.
Ok I have a folder with 15,000 documents, It could be doc files, pdf's or txt's or rtf's or even images.
I need to run a search on these files [doc,rtf,pdf,txt] using verity search in CF 5..
I have done the following, but it fails
<CFSET sCollectionFilePath = "#GetDirectoryFromPath(Get
<CFTRY>
<CFCOLLECTION ACTION="DELETE" COLLECTION="CVCollection3"
<CFCATCH TYPE="Any">
</CFCATCH>
</CFTRY>
<CFCOLLECTION ACTION="CREATE" COLLECTION="CVCollection3"
Now this code gives me an error if try creating the same collection again, It says unable to create as already exists. But I do not see these folders in the path that I have mentioned.
But This code did run once and I assumed the collection has been created.
But When I try to use CFINDEX, I get the following error -
<CFSET sCollectionFilePath = "#GetDirectoryFromPath(Get
<CFTRY>
<CFCOLLECTION ACTION="DELETE" COLLECTION="CVCollection3"
<CFCATCH TYPE="Any">
</CFCATCH>
</CFTRY>
<CFCOLLECTION ACTION="CREATE" COLLECTION="CVCollection3"
<CFINDEX action = "update" collection = "CVCollection3"
key = "#sCollectionFilePath#" type = "path"
recurse = "No">
but when i run this i get the following error
Error occurred in tag CFINDEX Error # -23 [ffe9] VdkCollectionSubmit
Now I am not sure whether everything should be written in one page or not..
Please help as this is very urgent..
Thanks & Regards
Hart
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
WHy not try making CVcollection4 and index it just to test that your create collection and index code work on a new collection. If so than you know it is some sort of overwrite issue. Or try putting in the file path yourself and see if that will fix it.
try using purge rather than delete..
<cfindex action="PURGE" collection="CVCollection3" >
<CFINDEX action = "update" collection = "CVCollection3"
key = "#sCollectionFilePath#" type = "path"
recurse = "No">
<cfindex action="PURGE" collection="CVCollection3"
<CFINDEX action = "update" collection = "CVCollection3"
key = "#sCollectionFilePath#" type = "path"
recurse = "No">
ASKER
Hi All,
It was an issue with the server.. as the files are on a filer and the collection created on the filer was not getting populated.
The solution used was that i created the collection on the CF server and the index on the filer..
Anyways thanks for all the help..
Regards
Hart
It was an issue with the server.. as the files are on a filer and the collection created on the filer was not getting populated.
The solution used was that i created the collection on the CF server and the index on the filer..
Anyways thanks for all the help..
Regards
Hart