Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal

Search

Search

Bug: MOSS 2007 Search Scope with Property Query Rules Only Is Considered Empty

Note
This post originally appeared on my MSDN blog:

Since I no longer work for Microsoft, I have copied it here in case that blog ever goes away.

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.

Search scope bug in MOSS 2007 December 2008 CU
Figure 1: Search scope bug in MOSS 2007 December 2008 CU

To hack around this bug, add a Web Address rule, as shown below.

Workaround for search scope bug
Figure 2: Workaround for search scope bug
Note that in the screenshot above, http://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.

Tags

Comments

  1. # Excluding Various SharePoint Items from Search Results on Internet-Facing MOSS Sites

    March 4, 2009 7:47 PM
    blogs.msdn.com

Add Comment

Optional, but recommended (especially if you have a Gravatar). Note that your email address will not appear with your comment.
If URL is specified, it will be included as a link with your name.

To prevent spam from being submitted, please select the following fruit: Strawberry

Pear
Watermelon
Strawberry
Apple
Grapes
Cherries
 
Please add 2 and 3 and type the answer here: