I've found that verity doesn't seem to like criteria with leading or
trailing spaces, so I trim the search criteria before passing it to the
cfsearch tag.

Anyone know why Verity doesn't like the spaces?

Alex

> -----Original Message-----
> From: Christian L. Watt [SMTP:[EMAIL PROTECTED]]
> Sent: 02 August 2001 16:40
> To:   CF-Talk
> Subject:      RE: Verity problem
> 
> Adrian,
>       You can search for those words if you replace them with no blanks,
> but make sure you put a space both before and after them.  This should
> also
> only happen if you are splitting the string out to search the words one at
> a
> time.
> 
> #replace(string, " and ", "", "all")#
> #replace(string, " or ", "", "all")#
> #replace(string, " not ", "", "all")#
> 
> Christian Watt
> 
> -----Original Message-----
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 26, 2001 11:18 AM
> To: CF-Talk
> Subject: Verity problem
> 
> 
> I'm new to this so go easy on me. I'm using verity to search a site,
> typing
> in 'and', 'not' and 'or' on their own is causing an error. Anyone out
> there
> come across this problem before? Stopping these words from going through
> isn't the answer as I then can't search for things like s'and',
> f'or'gotten
> ect......
> Cheers
> 
> Adrian Lynch
> ----------------------
> United Kingdom
> http://www.thoughtbubble.co.uk/
> Ph: +44 (0) 20 7387 8890
> ----------------------
> New Zealand
> http://www.thoughtbubble.co.nz/
> Ph: +64 (0) 9 488 9131
> 
> The information in this email and in any attachments is confidential and
> intended solely for the attention and use of the named addressee(s) . Any
> views or opinions presented are solely those of the author and do not
> necessarily represent those of Thoughtbubble. This information may be
> subject to legal, professional or other privilege and further distribution
> of it is strictly prohibited without our authority. If you are not the
> intended recipient, you are not authorised to disclose, copy, distribute,
> or
> retain this message. Please notify us on +44 (0) 20 7387 8890
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to