Nick Grattan's Blog

About Microsoft SharePoint, .NET, Natural Language Processing and Machine Learning

Adding Search Scopes to Advanced Search

with 7 comments

Question: How can you add search scopes to the “Advanced Search” form in MOSS 2007?

Answer: Search scopes can be defined by the Shared Service Provider administrator and then the site collection administrator can assign these search scopes to groups.

For example, in the following diagram a shared scope called “Exclude Dublin Bus” (don’t ask…) has been defined in the shared service provider, and is included in “Search Dropdown” group:

Shsc1

The “View Scopes” form can be accessed throughthe Site Actions + Modify All Site Settings menu command for the site collection and then selecting “Search Scopes” under “Site Collection Administration”.

This means the search scope is displayed in the scope drop down for search:

Shsc2

To add the same search scope for the “Advanced Search” form you should first add the search scope to the display group “Advanced Search” using the “View Scopes” form shown above.

Next, you need to display search scopes in the “Advanced Search” form. To do this, navigate to the “Advanced Search” form and select Actions + Edit Page. Then select the edit + Modify Shared Web Part menu for the “Advanced Search Box” web part.

Now expand out the “Scopes” property section and select “Show the scope picker”:

Shsc3

Publish the change and the scopes defined for the “Advanced Search” group will be displayed:

Shsc4

 

 

 

 

Advertisements

Written by Nick Grattan

August 22, 2007 at 2:29 pm

7 Responses

Subscribe to comments with RSS.

  1. I found for a long time to get this Point.
    Very Good!!

    Paul Zhang

    October 16, 2007 at 3:26 am

  2. Hi Nick,
    Nice article ! How can I make a default selection enabled for a selective scope. for eg in this article I want “Exclude Dublin Bus” to be Checked when the page loads.

    Thank You
    Aravind

    Aravind

    November 5, 2007 at 7:20 am

  3. I’m not sure you can. The advanced search page is implemented using a Web Part and the only options you have are those displayed in the property pages. Anyone know different? Nick.

    nickgrattan

    November 16, 2007 at 2:06 pm

  4. We have scads of sites and libraries and it would be useful to narrow Advanced Search (property constraints) to This Library or This Site.

    I asked our MOSS sys admin to use your procedure to add “This Library” and “This Site” to Advanced Search scope. They said that this was impossible since navigating to Advanced Search left the users site/library and Advanced Search had no way to reference This Lib or This site. Is there a workaround?
    thanks
    Ron

    Ron Williams

    March 31, 2008 at 7:57 pm

  5. Hello, am running MOSS2007 and Site Collection Administration>Search Scopes is nowhere to be found, any ideas?

    many thanks

    walter_ego

    April 18, 2008 at 7:54 pm

  6. Is there a way to display scope picker as a drop down instead of checkboxes in advanced search ? What happens if there are a 100 scopes ?

    Shai

    September 6, 2012 at 5:31 am

    • Shai – Did you figure out a way to display the scopes as a dropdown instead of checkboxes? I am seeking the same solution. Thanks!

      Marc

      October 8, 2012 at 5:35 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: