locked
MOSS 2007: add additional managed properties to hithighlighted search results RRS feed

  • Question

  • Hi,

    I am currently dealing with an older MOSS 2007 system. I want to add custom properties as hithighlighted search results. When I retrieve the raw xml of my search result it looks like this:

    <hithighlightedproperties>
            <HHTitle>Letter.dot</HHTitle>
            <HHUrl>http://w2k34/TEST2/1CG/Documents/Letter.dot</HHUrl>
    </hithighlightedproperties>

    I have added an additional column into the selected columns and I got it added to the results aswell, but not hithighlighted. Is there a way in MOSS 2007 to add custom properties to the highlightedproperties section?

    Thanks

    Sven

    Wednesday, July 17, 2013 8:27 PM

Answers

All replies

  • Hi,

    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.

    Thanks,

    Entan Ming

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contacttnmff@microsoft.com.


    Entan Ming
    TechNet Community Support

    Thursday, July 18, 2013 7:02 AM
    Moderator
  • Hi Sven,

    from the code that you submit, have you tried to add this tag <c0>..</c0> ?

    perhaps you can try to add the tags,  

    here is the example that similar to your post: 

    http://www.novolocus.com/2008/05/19/hit-highlighting-in-sharepoint-search-document-titles/

    http://zimmergren.net/technical/moss-2007-customizing-the-search-results-page-xslt-part-2-add-highlighting


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, July 18, 2013 8:23 AM
  • Hi Aries,

    yesterday I browsed through the links you provided already, but that is not what I wanted. My objective was to have the hits in my managedproperty to be highlighted.

    the question was if I can add additional properties to <hithighlightedproperties>. As far as I understand only those properties HAVE highlighting, right?

    Sven

    Thursday, July 18, 2013 9:25 AM
  • Hi Sven,

    hithighlight properties is part of HTML style actually, perhaps if you have the time to try, you may add that tag on your text.

    if you able to have the text, then you may have it as highlighted style.

    here is some examples that perhaps may help you

    http://avinashkt.blogspot.in/2007/06/change-search-results-display-in.html

    http://chris.gg/2011/06/display-filename-instead-of-document-title-in-sharepoint-search/

    for your question, add additional properties to the <hithighlightedproperties>, can i have more details about the properties that you want to add?


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, July 18, 2013 9:36 AM
  • Hi Aries,

    hithighlighting is not part of HTML. Defining colours is part of HTML/XSLT Transformation, but it is all based in the XML result returned from the SP Search.

    In my case I have added a custom managed property to the SELECTED COLUMNS. I used this explanation to display the raw XML result.

    http://msdn.microsoft.com/en-us/library/ms546985(v=office.14).aspx

    I figured out that my property is part of the search result, but not inside the <hithighlightedproperties> section. As I understand ONLY the properties inside this section include highlighting. When I search for something, it should be hithighlighted. This is why I asked how I could add hithighlighting to a custom property. I did not ask about modifying the colour coding.

    This post describes about doing this for SP2010.

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/4fc90c97-0129-4554-859c-c5ab3db19a8f/search-highlighting-on-custom-properties-for-sharepoint-2010

    In the FETCHED COLUMNS section there it is sufficient to add the hithighlight = "true" attribute, but this does not work for MOSS 2007.

    <Column Name="MattersMatterName" HitHighLight="true" />

    I found a similae post here, but without any solution.

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/99566530-287f-46b8-976a-81ea8977ac68/adding-hithighlight-hit-highlight-to-custom-property-sharepoint-2007

    I hope I was clear this time. Does anyone know how to add hithighlighting to a custom managed property?

    Thanks

    Sven

    Thursday, July 18, 2013 12:45 PM
  • Hi Sven,

    thank you for the correction,

    you are correct that hithighlight feature can only be inside the hithighlite properties,

    for your environment, i searched and tried a little on this blog: http://blogs.msdn.com/b/arbindo/archive/2008/04/04/customizing-sharepoint-2007-search-result-for-structured-content.aspx

    seems quite promising, but not sure if this is able to solve your issue or not.

    the idea is to put your column to the managed property column by map them in, so when it read your mapped column the highlight may appear, but you need to try, as my column is fixed one, not having dynamic value.

    if should you have more complex situation than this, i may advise you to open a advisory case, so we can help you customize with the possible way to help on your needs.


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Friday, July 19, 2013 1:54 AM
  • Hi Aries,

    I think I have described in detail what my objective is: add hithighlighting to a custom managed property. The link you provided is about structuring search results. My objective is different.

    Sorry, that does not solve the issue.

    Sven

    • Proposed as answer by Aries - MSFT Tuesday, July 30, 2013 9:15 AM
    Friday, July 19, 2013 9:29 AM
  • Hi Sven,

    very sorry to hear that, but that is the last steps that i can think of at this moment, as i encourage you to try, because sharepoint 2007 may different in terms with 2010, so perhaps the result may similar.

    as the issue quite unique, i strongly suggest for you to open an advisory case to us, so we are able to give you more support regarding this issue.


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Friday, July 19, 2013 10:48 AM
  • Hi Sven,

    sorry for the late reply, i follow this articles :

    http://www.sharepointsharon.com/2012/08/displaying-more-properties-in-search-results/

    http://blogs.technet.com/b/searchguys/archive/2012/06/11/quick-hits-using-a-custom-property-with-hit-highlighting.aspx

    http://www.datazx.cn/4v7p5a/xw-US/aqs7xuv1w20xwx7syu7xo1vpa/2q7xs6/4fx4s8ib-rrm8-fsmf-8rgb-ft6msmjrbrig23rsdfd.html

    i quote: " It can also be done with SharePoint 2007 but you have to amend the web part direct (columns and XSL) instead of creating a federated location when you get to step 3." 

    Since sharepoint 2007, perhaps dont have the feature federated location search yet, so this command may not be applicable:  HitHighlight=”true"

    then while i create at 2007, the properties need to be decided directly, for example:

    <xsl:choose>
    	<xsl:when test="hithighlightedproperties/HHTitle[. != '']">
    		<xsl:apply-templates select="hithighlightedproperties/HHTitle"/> 
    	</xsl:when>
    	<xsl:otherwise>
    		<xsl:value-of select="title"/>
    	</xsl:otherwise> 
    </xsl:choose>
    
     

     


    Regards,
    Aries
    Microsoft Online Community Support


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Wednesday, August 28, 2013 4:05 AM