Daemonite: Verity Idiosyncrasies: Commas and Spaces Archive

Daemonite: Verity Idiosyncrasies: Commas and Spaces Archive

Thursday, March 10, 2005
Verity Idiosyncrasies: Commas and Spaces

Sometimes folks have trouble with Verity search results not behaving quite as they expect. For example, searching for multiple keywords might be bringing back unexpected results.

The problem you might be facing is the historical Verity syntax. Verity requires you to put commas between multiple keywords.

In ColdFusion's Verity implementation:

  • commas -> equivalent to putting OR bewteen keywords
  • spaces -> equivalent to using PHRASE to putting AND bewteen keywords

Note Verity was around before the major online search engines -- but now the accepted norm is spaces -> OR AND (like Google)

Easiest thing you can do is just pretreat your search criteria and convert spaces to commas before you run your CFSEARCH -- your users won't know the difference then.

Posted by modius at 10:33 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/270


Quote: "now the accepted norm is spaces -> OR". That doesn't seem right, Geoff: Google matches ALL your keywords by default, ie spaces -> AND. Also, the default in CF Verity (my experience with 6.1 at least) is to search for the exact phrase, so spaces don't equal AND. Not sure if any of this has changed in MX7...

Posted by: Julian on March 11, 2005 07:49 PM

Actually yer probably right. Google should be the accepted norm. I'll rephrase that. And yup looks like Verity defaults to PHRASE -- not sure where my head was at.

Posted by: Geoff Bowers on March 12, 2005 12:12 PM