Bug: MOSS 2007 Search Scope with Property Query Rules Only Is Considered Empty
In Microsoft Office SharePoint Server (MOSS) 2007 version 12.0.0.6335 (i.e. the December 2008 CU), there appears to be a bug where a scope that only contains Property Query rules is not recognized as having any rules at all (i.e. empty) and therefore is not compiled.
Figure 1: Search scope bug in MOSS 2007 December 2008 CU
To hack around this bug, add a Web Address rule, as shown below.
Figure 2: Workaround for search scope bug
Note that in the screenshot above, https://foobar is the Web application that I want to include content from, while excluding the "Pages" libraries themselves from the results (i.e. items where contentclass = STS_List_850). In other words, I want individual pages within the Pages library to appear in the search results -- just not the actual Pages libraries themselves (e.g. the All Items view of the list).
Also note that this is not the exhaustive list of rules required to exclude the various SharePoint items from search results that you most likely don't want to show to users on an Internet-facing MOSS site. I'll defer that to a subsequent post.
Comments
- Anonymous
March 05, 2009
When using Microsoft Office SharePoint Server (MOSS) 2007 on an Internet-facing site, you almost certainly