• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 469
  • Last Modified:

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(GetCurrentTemplatePath())#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(GetCurrentTemplatePath())#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

0
hart
Asked:
hart
1 Solution
 
dgrafxCommented:
I guess I don't know if it matters, but I've always left the PATH set to default in the CFCollection tag which is:
Path="#server.coldfusion.rootDir#\Verity\Collections\"

Try that ...
0
 
siva350Commented:
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.
0
 
SidFishesCommented:
try using purge rather than delete..

<cfindex action="PURGE" collection="CVCollection3">
<CFINDEX action = "update" collection = "CVCollection3"
                      key = "#sCollectionFilePath#" type = "path"
                      recurse = "No">
0
 
hartAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now