SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I understand you can set the site collection's search scope settings at "Site Collection Administration>Search Settings". Is there a way, in SharePoint 2010 Foundation, we can set the scope solely for my site, rather than the entire collection?

share|improve this question

This solution only works if it is a quality of life issue only

For this I ended up using the path advanced search filter. I just set it in the template as append to query.

This is what I ended up with:

<div id="searchLayout">
    <SPSWC:SearchBoxEx AppendToQuery="false" AppQueryTerms="Request.Url.AbsoluteUri" QueryPromptString="Search News..." id="SearchBox" RegisterStyles="false" TextBeforeTextBox="" TextBoxWidth="200" GoImageUrl="" GoImageActiveUrl="" GoImageUrlRTL="" GoImageActiveUrlRTL="" UseSiteDefaults="true" DropDownMode="HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{0043945F-2D2B-4A02-8510-CED13B6F04DF}"/>
    <script type="text/javascript" defer="defer">
        var url = window.location.pathname;
        document.getElementById("ctl00_PlaceHolderMain_SearchBox_ctl00").value = "path:" + url.substring(0,url.lastIndexOf('/')) + "";
share|improve this answer
To my great displeasure, I don't have the option of editing the template. – Pete Oct 3 '12 at 17:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.