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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2006 at 11:45 PM
    Add a 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 a 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 a 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.