Including Welcome Pages in the search scope in SharePoint Web Content Management solutions
Inconvenient SharePoint, Search, SharePoint, Tips & Tricks, WCMWhen using SharePoint search in a Web Content Management (WCM) solution you are very likely to create your scope which will include Publishing Pages only. As other pages like Application Pages and Lists' Forms are not accessible by anonymous visitors you don't want them to appear in the search results on the public site. While creating what I call a 'public scope' is rather straight-forward there is one thing you have to keep in mind to make it work as expected.
To create a search scope for use on an Internet-facing website, you need to create either a Shared or Site search scope with the contentclass = STS_ListItem_850 rule. By including this rule you will tell the search scope to include List Items of the Document Library of type 850 (Pages Library). As soon as you compile the scope and start searching you might notice that there are no results from any of the Welcome Pages included.
While running similar search query using the All Site Content scope I have found out that the Welcome Pages are of type Site instead of Document. It's rather odd knowing that they are Publishing Pages as well. In order to include Welcome Pages in your public search scope you need to add extra rule: contentclass = STS_Web.

















August 28th, 2008 at 8:11 am
Thanks for the article, and the info about Image Editing tool!
October 16th, 2008 at 10:51 am
Hi
Great stuff. However, this rule only seems to work on the content of the welcome page. I want to access some custom added metadata attached to the welcome page through a mapped metadata property. Have you any idea how to do this?
October 19th, 2008 at 2:35 pm
Hi Iver,
I haven't worked with search that much myself. On one hand I wouldn't suspect it to work any different than using custom properties on any other page…
Have you tried SharePoint MSDN forums? There is a bunch of great guys there helping out people with problems like yours. There is even a whole special section about search. You should definitely give it a try.
August 7th, 2009 at 10:09 am
Waldek, thanks a stack for your post on this, I don't know how you found this solution but whatever time you put into this is very much appreciated. I've seen some of the complex workarounds people have done to achieve this and what a headache. Keep up the great posts.
August 7th, 2009 at 10:34 am
@Andrew: Great to hear I could help. Thank you: I appreciate it
February 14th, 2010 at 9:50 am
[...] the Front Pages From The Searchto be able to include them you need to add the following ruleshttp://blog.mastykarz.nl/including-pages-search-scope-sharepoint-web-content-management-solutions/ Categories: SharePoint Tags: Deployment, Moss, Search, SharePoint Comments (0) [...]
July 27th, 2010 at 9:31 pm
[...] By Default Exclude the Front Pages From The Search to be able to include them you need to add the following rules Categories: SharePoint Tags: Deployment, Moss, Search, SharePoint Comments (0) [...]