We do this by actually removing the excluded keys from the search collection
after it is built, like this:
<cfloop list="#stDS.txtExclusions#" index="txtExclude"
delimiters="#chr(13)##chr(10)#">
<cfset txtCriteria = Replace (txtExclude, "\", "\\", "ALL")>
<cfsearch name="qryDeleteKeys"
collection="#stDS.txtCollectionName#"
type="simple"
criteria="CF_KEY <SUBSTRING> #txtCriteria#">
<cfindex collection="#stDS.txtCollectionName#"
action="delete"
query="qryDeleteKeys"
key="KEY">
</cfloop>
Jaime Metcher
> -----Original Message-----
> From: Josh Knopp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 March 2007 6:40 AM
> To: CF-Talk
> Subject: Re: Verity exclude sub-directories?
>
>
> I am extremely new to Verity searching - today is literally my
> first day. So there may be more graceful ways to solve this
> conundrum, but here's what I have...
>
> I have subdirectories called 'admin' and 'includes' that I do not
> want showing up in search results, so at the top of the search
> results page, I have:
>
> <CFSEARCH NAME="Search_mySite"
> COLLECTION="mySite"
> CRITERIA="#FORM.Search_Term# NOT /admin/ NOT /includes/">
>
> Seems to work great.
>
> Good luck,
> Josh Knopp
> AMS, Inc.
>
>
> > I'm working with Verity and have a question....is there a way to
> > exclude
> > certain sub-directories from being indexed in the collection? I have
> > a few
> > 'procedure' directories that I don't want coming up in the user search.
> >
> >
> > Thanks for your help!
> > Deborah
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Structure your ColdFusion code with Fusebox. Get the official book at
> > http://www.fusionauthority.com/bkinfo.
> cfm
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274046
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4