Skip to main content
Inspiring
April 29, 2008
Question

Need help with cfsearch

  • April 29, 2008
  • 1 reply
  • 454 views
Hi there,

I have Coldfusion v 7 installed. I am using the Verity collection and it is working fine. I am having trouble with attributes - ContextHighlightBegin, ContextHighlightEnd, ContextPassages and ContextBytes. It seems that no matter what value I assign to these attributes, I don't see any change in the output. Below is my cfearch code and let me know if you have any idea what is happening.

Thanks in advance,

Joe
    This topic has been closed for replies.

    1 reply

    Inspiring
    April 30, 2008
    what do you see in the CONTEXT column if you do <cfdump
    var="#search_test#"> ?

    ps: no need to specify contexthighlightbegin and contexthighlightend if
    you are using the default values for them...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    Inspiring
    April 30, 2008
    In the CONTEXT column, I do see keyword that I am searching is enclosed in <b> and </b>. I am trying to output the Summary and was hoping that my keyword in the Summary would be BOLD.

    You are correct, I don't need ContextHighlightBegin and ContextHighlightEnd as the default value is <b>.

    So how do I make the keyword appear BOLD in Summary.

    Also why I cannot use the length of Summary using ContextPassages and ContextBytes.

    Joe