Microsoft Developer Network > Domovská stránka fór > SharePoint - Search > MOSS 2007 Search - Irrelevant Words is show is search summary (from Master Page)
Odeslat dotazOdeslat dotaz
 

DotazMOSS 2007 Search - Irrelevant Words is show is search summary (from Master Page)

  • 12. května 2008 19:59anderskj1 Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     

    Hi

     

    We have a master page which contains some basic elements such as a close button with some standard text like "Close Window", a text in front of the search box called "Search" and so on.

     

    Now we are performing the search via the MOSS Search.asmx web service and showing the result via the field "HitHighlightedSummary" on the custom search summary.

     

    The problem is that this HitHighlightedSummary in about 30% of the time is showin the search summary like this:

    1. "Close Window...Search....Here goes some relevant text sometimes".

    2. "Close Window...Search....Here goes some relevant text sometimes".

    3. "Close Window...Search....Here goes some relevant text sometimes".

     

    This is of course completly irrelevant for the user to see. I can see why it is doing this since it just index the html returned when the "whole" publishing page is shown for the indexer.

     

    But how do I avoid this behaviour? Ideally the indexer should only index the meta data of the Publishing pages and not the whole HTML content. But when search the actual aspx page should of course be available.

     

    Regards

    Anders

Všechny reakce

  • 3. července 2009 8:11stevemagid Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    I've had similar problems. what I have done is a workaround. in the searchresults xslt I add a condition to whether it should show the xslt. my problem is it was showing the link to the page layout. I said that if not(contains(hithighlightedsummary,'_catalogs')) then show hithighlightedsummary. but i was able to identify some text that was common in the problems (_catalogs is in all the layouts).

    Do a search on your servername as well. see if any reults pull through the servername and useraccount listed as contact. i had to exclude this as per above as well.