Microsoft Developer Network > Forenhomepage > SharePoint - Search > MOSS 2007 Search - Irrelevant Words is show is search summary (from Master Page)
Stellen Sie eine FrageStellen Sie eine Frage
 

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

  • Montag, 12. Mai 2008 19:59anderskj1 TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    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

Alle Antworten

  • Freitag, 3. Juli 2009 08:11stevemagid TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    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.