Link to home
Start Free TrialLog in
Avatar of tags266
tags266

asked on

CFSEARCH Collection using SOUNDEX tag

Has anyone used SOUNDEX on the CFSEARCH tag before?  I have just picked up CF's verity and i must say I'm pretty impressed.  I have created the collection, built the index, and am performing searches.  

I currently have the autosuggestion feature working and it's pretty amazing.  I need to also come up with a SOUNDEX feature for misspellings (i.e someone types Coldfuzion and i need it to find Coldfusion).  

Here's what I have on my CFSEARCH Tag.

<cfsearch name="GetResults"
                  suggestions="3"
                  status="info"
                  collection="Index1"
                  criteria="#keywords#">

First it seems i need to enable it..i found this somewhere onlin: In order to enable the <SOUNDEX> operator in Verity searches, you must add Soundex to the WORD-IDXOPTS directive in the style.prm file. ColdFusion MX 7 ships with more than one style.prm file. The correct file to update is in the verity/Data/stylesets/ColdFusionK2 directory.  
Is that all, do i need a separate collection for this?
From what I'm reading it seems all I need to do is add criteria="<STEM>#keywords#">...will that work too?  or do i need to add that tag before each keyword in criteria  
(i.e. criterira="<STEM>#keyword1# <STEM>#Keyword2#>

I have a deadline and any help navigating through this from someone with experience will help me greatly!!
Avatar of dgrafx
dgrafx
Flag of United States of America image

no you don't need a separate collection
just enable by creating your sound alike index (like you referred to)
you'll just need to experiment with if you can (or need to) do
"#keyword1# #Keyword2#"
I've never tried it

good luck ...
Avatar of tags266
tags266

ASKER

thax...i'm about to try shortly...waiting for the admins to enable it is the style.prm.  

Do you mean #keyword1#?  and not ?

When i figure it out i'll post it here for others.  There's barely any info about this very powerful feature anywhere online.
ASKER CERTIFIED SOLUTION
Avatar of dgrafx
dgrafx
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tags266

ASKER

any experience with CF_Phoentic??  do you think that would work in this instance?
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1000080 
never messed with it - sorry ...