Skip to main content
April 2, 2009
Question

CFSEARCH Fuzzy Searching

  • April 2, 2009
  • 1 reply
  • 706 views
Is there a way to access the fuzzy search results that CFSEARCH uses to highlight strings when context highlighting is enabled? If I enter a search string "apple" and Verity highlights "apply", "apples" and "appl1" in the context passages, how can I access these fuzzy search results?

I have written my own highlighting function to highlight text that are not necessarily context passages but I can only highlight the original search string that I entered. I would also like to highlight the fuzzy search strings that Verity finds.

Any suggestions?
This topic has been closed for replies.

1 reply

Inspiring
April 2, 2009
> Is there a way to access the fuzzy search results that CFSEARCH uses to
> highlight strings when context highlighting is enabled? If I enter a search
> string "apple" and Verity highlights "apply", "apples" and "appl1" in the
> context passages, how can I access these fuzzy search results?
>
> I have written my own highlighting function to highlight text that are not
> necessarily context passages but I can only highlight the original search
> string that I entered. I would also like to highlight the fuzzy search strings
> that Verity finds.
>
> Any suggestions?

Interesting. This is a bit ham-fisted, but you could do a regex match for
whatever is between the contextHighligthBegin and contextHighlightEnd
markers, and pull the matched words straight out of the context passages.

I'm not sure if this is feasible... I've only spent as much time thinking
about it as it took to type. But it might work?

--
Adam