If you are indexing a large set of files all at once, then yes, it
makes sense to index all, and then remove the ones you don't want. As
for removing a set of directories, you should be able to pass in a
query to the delete action, so if you made a query on the fly using
queryNew, queryAddRow, and put the directories as key values there,
you should then be able to perform the delete with one operation. (If
I remember right.)

FYI, no need for the lock on the delete.

On Jan 16, 2008 12:02 PM, Adam Parker <[EMAIL PROTECTED]> wrote:
> Hello -
>
> I have created a verity collection to search my website.  While testing, I 
> have found that the results return files from directories I do not want to be 
> searched through.
>
> I have tried using something like this to remove the directory I do not want 
> searched from the verity collection:
>
> <cfindex
>     action="refresh"
>     collection="Web2008"
>     key="C:\WEBDATA\WEBS\www"
>     type="path"
>     urlpath="http://www.mysite.com/";
>     extensions=".htm, .html, .cfm"
>     recurse="yes"
>     custom2="program"
>      >
>
>
> <cflock
>      name="Web2008"
>      timeout="60">
>      <cfindex
>          collection="KSBWeb2008"
>          action="delete"
>          type="path"
>          key="C:\WEBDATA\WEBS\www\blog\admin"
>          extensions=".cfm"
>          recurse="no">
> </cflock>
>
> Is this the correct syntax?  Do I index the collection then index it again 
> with the directory or directories I don't want to show up in the search 
> results?
>
> Also, can I specify multiple directories when I specify which ones to delete 
> from the collection?  Would it be:
>
>  key="C:\WEBDATA\WEBS\www\blog\admin","C:\WEBDATA\WEBS\www\site\admin"
>
> Thanks,
> Adam
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3236
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to