Search Results on a Internet Facing SharePoint Site

When you crawled a SharePoint site everything on that site will become visible on the search results page of your search center. If you have an internet facing SharePoint site you do not want to see list views or other background pages in the search results. These pages can be filtered out from your search results by making crawl rules in the Shared Service Provider. You can create crawl rules in the following steps: 1: Navigating to your Shared Service Provider. 2: Click search settings under Search. 3: Then click Crawl Rules. In this screen you can add new Crawl rules by selecting new crawl rule. If you want to exclude background pages from the search results you can insert some of the following crawl rules:

  • *://*webfldr.aspx – This will exclude all explorer view pages if you choice it as a exclude rule.
  • *://*mod-view.aspx* – This will exclude the Moderation view page if you choice it as a exclude rule.
  • *://*my-sub.aspx* – This will exclude the page with your items if you choice it as a exlude rule.
  • *://*allitems.aspx* – This will exclude the allitems page from the search results if you choice it as a exclude rule.
  • *://*allforms.aspx* – This will exclude the all forms page from the search results if you choice it as a exclude rule.
  • *://*/lists/* – This will exclude the list from the search results if you choice it as a exclude rule.
  • *://*DispForm.aspx* – This will exclude the list display form from the search results if you choice it as a exclude rule.

If you have entered these crawl rules in you shared service provider and you run a full crawl again you will notice that you have less items indexed.

2 comments

  • This site was… how do I say it? Relevant!! Finally I’ve found something which helped me.
    Kudos!

    • Goutam Sindur

      There is one more easy way to do this. in SharePoint 2010 there is option in search result webpart called Result Query Option.
      1. open search result webpart in edit mode.
      2.Expand Result Query Option.
      3. In the text box “Append Text To Query” paste the following line
      NOT STS_List_GenericList AND NOT AllItems.aspx AND NOT my-sub.aspx AND NOT mod-view.aspx AND NOT allforms.aspx AND NOT webfldr.aspx
      4. The above line is KQL(KeyWord Query Language) this line restrict
      AllItems.aspx,my-sub.aspx,mod-view.aspx,allforms.aspx,webfldr.aspx from search result. but, it will not restrict website that contains list and library.
      I am trying find solution for this which filter for websites also. If of you find any other feasible solution/modify this to work for all requirement then please let me know.

Leave a Reply

Your email address will not be published. Required fields are marked *