Skip to Content
author's profile photo Former Member
Former Member

How to put bold in Search Result?

Hi all,

I’ve defined a search results render settings, using as base the StandardSearchResultRenderer, using not rnd:documentabstract but rnd:description in Displayed Properties field. My goal is to display in <b>bold</b> the word or phrase, in the search result, that matches the search string.

Regards,

Manuel

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 11:45 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2006 at 09:51 AM

    Hi Manuel,

    >> to display in bold the word or phrase

    In the default UIs this should happen anyhow in:

    a) the content snippets in the search result list

    b) the HTML version (not bold, but color-highlighted) of a retrieved file

    Where else do you want hits to be rendered bold?

    In the original file (MS-Office, PDF,...)?

    That's not easy, if not impossible, as you'd have to hand the search information from KM/TREX to the desktop application which opens the file.

    Regards,

    Karsten

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 04:08 PM

    Thank you both, Patricio & Karsten.

    I get bold in the Search Result Page when using the rnd:documentabstract, it works. But if I change it to use rnd:description, no bolds.

    This is my Displayed Properties string: sed:sed_title(contentLink)+sed:sed_show_as_icon,sed:sed_publication_date(alignLeft),description(noTitle/[2;1]/space-top=0/space-bottom=5/space-right=10). The collection renderer is the default SearchResultListRenderer.

    What I'm missing?

    Manuel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Manuel,

      Have you tried ?

      Duplicate SearchResultLayoutSet and modify it. After that in your search iview you declare this result layout set.

      In the collection renderer:

      rnd:documentabstract(alignTop/primaryTextStyle),

      modifiedby(secondaryTextStyle)

      In the resource renderer you define primary and secondary text style.

      Patricio.