Let's assume I got this right, and understood from what I
read in the ColdFusion documentation. Phrases can be searched by
surrounding them with double quotes. Right? Consult CF or Verity
documentation or goog... your nearest web search engine for more
information on the subject.
If the above is true, let's continue...
You might have, say, a radiobutton option in your search
form, like: search for ( ) words (o) phrases. Like:
<input type="radio" name="searchType" value="words">
<input type="radio" name="searchType" value="phrases">
Then a you could do this with the <cfsearch> tag:
<cfparam name="cqm" value=""> <!--- conditional
quotation mark --->
<cfif FORM.searchType EQ "phrases">
<cfset cqm = chr(34)>
...and then, in the criteria attribute of the cfsearch, wrap
the FORM.keywords with the optional quotation marks. Like this:
Everything above is purely theoretical, I haven't tried any
of that in practice. Hope this helps anyway.