This is a repost -- can someone help?

I have an application that uses three Verity collections. I can 
successfully create the first collection and retrieve info from it, and 
can then do the same with the second collection. However, when I 
go back and do an update on the first collection, 2 error 
messages like the following are generated in file/sysinfo.log for each page I attempt 
to add:

----Start of error ----------------------------------
Error   E3-0422 (VDK 2): Could not find file Page_338.htm

Error   E3-0032 (VDK): No valid documents found in 
C:\WINNT\CFI70CB.tmp for collection 
E:\Web\worldwideguide\guides\verity\Guide_2_Pages\file
----End of Error ----------------------------------

The contents of this update also do not show up in searches.

This is my CFINDEX:

<CFINDEX collection="#ThisCollection#"
        action="Update"
        type="File"
        key="Page_#ThisPageID#.htm"
        CUSTOM1="#ThisPageURL#"
        CUSTOM2="#ThisPageID#"
        extensions=".htm"
        language="English">             

Once this error occurs with a collection, I discovered that the only 
way I can correct it is to run the following code, taken in 
desperation from some sample CF code:

<CFINDEX 
        collection="#ThisCollection#"
    action="Refresh"
    type="PATH"
    key="#IndexDirectory#\"
    extensions="#IndexExtensions#"
    recurse="#IndexRecurse#"
    language="#IndexLanguage#"                  
urlPath="#URLPath#\verity\Guide#Dev#_#GuideID#_PageLinks">

Once I run the sample code, which does a PATH indexing 
operation rather than a FILE operation, I can then re-run the first 
CFINDEX and repopulate my collection (via a loop, file by file). The 
first CFINDEX does NOT have the same corrective effect, even if I 
change it to a Refresh rather than an Update.

I've tried deleting, purging, repairing and optimizing, all to no avail. 
The only thing that seems to work is running the PATH-based 
refresh, then going back to my initial FILE-based indexing within a 
loop. The problem with that, of course, is that each time I must 
complete rebuild the collection, which will NOT be practical in the 
application I'm building.

This code is for a little spider-type search engine, which retrieves 
external Web pages via CFHTTP, saves each page temporarily for 
indexing, then replaces the contents of the file with a single line 
META redirect. Seems to work great for the files that actually get 
indexed, but whenever I move to another collection to index pages 
and then return to the first, the new additions to the first collection 
simply don't show up in searches and the errors shown above are 
recorded in the logs. 

I wondered if somehow Verity was balking because the original 
contents are replaced with the redirect, but I see the same problem 
even if I retain the original contents in the file that is indexed. I'm 
obviously doing something wrong...

One other thing: Doing a "Purge" always deletes ALL the data from 
the collection. Isn't that supposed to only remove data that has 
been marked for deletion? 

Any ideas greatly appreciated...

Gene Kraybill
LPW & Associates LLC
Mansfield, PA

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to