SharePoint search doesn’t pick up results from your site

In some cases when you configure your search on a SharePoint site you may notice that you get no results for the site; this by default happens when you have a search center and trying to crawl its own content.

If you go to crawl logs in SharePoint Shared Services you will find pretty obscure errors.

One of the first things to check is whether your crawl account is a reader on the site:

searchaccount

Second thing, is to check whether your SPWeb has search turned on, to access the setting page just append “_layouts/srchvis.aspx” to the web url you want to check visibility for and ensure you have Allow this web to appear in search results?  set yo Yes

Here is how to toggle this value programatically:

web.AllowAutomaticASPXPageIndexing = true;
web.ASPXPageIndexMode = WebASPXPageIndexMode.Always;
web.NoCrawl = false;
web.Update();

Enjoy!

This entry was posted in MOSS, sharepoint and tagged , , , . Bookmark the permalink.

Comments are closed.