Skip to Content
avatar image
Former Member

Changing Display Name in Search Results

Hi,

We are on EP 5 SP4 P3 with TREX SP 5.0. We have created a web site and web repository manager to index a specific web site. Now this site has a lot of pages where the <title> tag contains content that is not useful in the search results. The body of these pages have content that are surrounded by <b> tags and if listed in the search results would make a lot more meaning.

Now to accomplish the listing of this content surrounded by <b> tags in the titles of the search results, we created a HTML Property extractor to extract the first B and assign it to the Property Name displayname, assigned this property to property extractor class and then assigned it to the web repository. After reindexing this site, the search results still contain the content listed under the <title> tags ("Full Record") and are not picking up the content within the <b> tags.

A watch on this document listed the below. As you see it has two displayname properties and is picking up the content within the <b> tags but is assigning it to a completely new displayname rather than replacing the existing one. Any advice on how to assign the extracted value to the existing displayname? Thanks.

docID: '/pushpage/pushpage/scripts/TechArticleExpanded.asp'; docType: TYPE_CONTENT; content length: 0 content codepage: ''; mimeType: 'text/html'; doc language: '' number of attributes: 9 name: 'index-content'; type: 'TEXT'; value1: 'true'; value2: ''; op: 'EQ' name: 'embedded-links'; type: 'TEXT'; value1: '/pushpage/pushpage/pushpage/SignIn.htm'; value2: ''; op: 'EQ' name: 'embedded-links'; type: 'TEXT'; value1: '/pushpage/pushpage/scripts/AddNewComment.asp'; value2: ''; op: 'EQ' name: 'contenttype'; type: 'TEXT'; value1: 'text/html; charset=windows-1252'; value2: ''; op: 'EQ' name: 'displayname'; type: 'TEXT'; value1: '(English) Interaction between a reactive'; value2: ''; op: 'EQ' name: 'modified'; type: 'TEXT'; value1: '20040514152742'; value2: ''; op: 'EQ' name: 'displayname'; type: 'TEXT'; value1: 'Full Record'; value2: ''; op: 'EQ' name: 'contentlength'; type: 'TEXT'; value1: '-1'; value2: ''; op: 'EQ' name: 'documentUri'; type: 'TEXT'; value1: '/pushpage/pushpage/scripts/TechArticleExpanded.asp'; value2: ''; op: 'EQ'

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • May 27, 2004 at 09:53 AM

    Hi Jeetandra,

    sorry, no clue concerning the code sample.

    BUT:

    For a lot of reasons, you may want to upgrade to an EP 6.0, SP2 or to NetWeaver'04 soon. This will maybe not answer the question on the side, where you are trying to solve it, but if this is true:

    >> but is assigning it to a completely new displayname rather than replacing the existing one

    ...you can use the Flexible UI to render the new property instead of the preconfigured one.

    Note:

    The Search result list is subject to Flex UI in the new EP 6.0 versions only. It cannot yet be influenced in EP 5.0, SP5.

    Here's a link to search results on the Flexible UI in KM:

    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&content=/irj/servlet/prt/?prtroot=/global/services/java-iviews/com.sap.csin.dimensionsearch≺ttheme=csin&querystring=flexible ui&searchdatasource=sdncontent

    Regards,

    Karsten

    Add comment
    10|10000 characters needed characters exceeded