Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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

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.