.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Search Scope Default to "this site"

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

I am trying to limit the search on a SharePoint site to each individual site collection..  These sites are all on the same server.  I have found a way to do this by following the article below –



 I change the dropdownmode on the masterpage to DropDownMode = "ShowDD_DefaultContextual"  this works for all my publishing sites.

View Complete Post

More Related Resource Links

Search Scope - Default to "This Site"

I have created a root level site collection via MOSS.  I have then added a site directory with both WSS and MOSS sites created underneath the site directory.  The default search for all of these sites is "All Sites".  Is there any way to make the default search for the team sites under the site directory "This Site"?

The issue is when users search for a topic using the "All Sites" scope, the results page is at the root level and it takes them out of their team site.  They then have to navigate back to the team site. 

I am assuming that I am creating a WSS site when I use the "Team Site" template under "Create SIte" in the site collection page.  Is this correct?

Sharepoint 2010 Advanced search box webpart - apply a default scope


My Advanced search box webpart return result from all the web appications and not just the one that it is in, i know i can create scope and spcify rules on it but i dont see an optoin of forcing
only this instance of web part to use a spific scope.

1. any way i can force it to use a scope behind the scenes instead of having the user select it.
2.i tried to use search core results web part but  ASB webpart is not open to connections even though in the properties i select "Allow connection", any way to make this combination work
3.since all my web application are using the same Search service appliction, could that be the reason that the ASB is returns results from those sites as well or is it that it returns result from all the web application in the farm?
3. Is there any place on the internet where i can find documentation on all the web parts.


how to set the default search scope for a basic search center ?


Hi there,

is it possible to set the default search scope to be used in a basic search center ? I want to have specific search centers for sitecollections so that they only query their own content by default first.

Thanks for your help.


Mysite Search Scope

I have four search scopes in the Shared services SSP. But in sharepoint 2007 mysite i see only All sites and People search scopes in the dropdown by default. I want to enable other two search scopes for all Mysites. I know how to enable search scopes individually but i would like enable search scope globally for all Mysites in my sharepoint webapplication.

Please suggest.


FAST Search for SP2010 scope setting works but not getting results.



I am trying this from last two days , but it does not work. I have created two scopes for FAST Search Query SSA , they appear in search center , but I am not getting any results back. I see them being fired in the FAST query log.

First one is a simple one:

New-SPEnterpriseSearchQueryScope -SearchApplication "FAST Query SSA" -Name DCO -Description "All DCO Documents" -DisplayInAdminUI 1 -ExtendedSearchFilter "ContentSource:DCO"

Content source is a managed property. and i can just query "contentsource:dco" from the text box which gives me results.

When I fire the query i see it in FAST Search query log

"GET /cgi-bin/search?qtf_keyword:context=ssgid%3a%3a4d020606-8532-45d8-b09a-db11283cccb4%7cSPS-Location%3a%3a%7cSPS-Responsibility%3a%2c%3a%7c&rpf_navigation:hits=50&rpf_navigation:enabled=True&spell=suggest&qtf_parsekw:timezone=10&type=kwall&qtf_teaser:dynlength=185&resubmitflags=8192&language=en&query=CASHIERING&sortby=%2bdefault&qtf_lemmatize=True&offset=0&version=

Top-Level Search Scope not showing in Sub-Site


I've got a site 'B' created under site 'A' in SharePoint. When I'm at Site A, I can search and find things that exist in both A&B. However, when I'm in B, the 'highest' search scope I can pick is 'B.' I'd like to be able to select one step higher so that I can search A&B from any page. Is this possible?

Search Scope Issue



I have 8 web applications containing different sites. One of the web applications is hosting a site called pmsportal.

Currently search results display files from all sites and from all web applications having matching results. That is like google!!! Sweet!!! BUT its over-performing! The owners of the pmsportal want search results to display only results from within their site ONLY...how do I do that? In the SSP Search Settings I have only two(2) Content Sources defined

(1) Local Office SharePoint Server sites

(2) PeopleSoft_Data

Someone please help.

Search Scope

Dear Friend, When I Click the Search Scope that time I got this error kinldy any one help me the error is "Unknown Error Troubleshoot issues with Windows SharePoint Services.  " Please its urgent for me, Other wise kindly say me how I implement searching in sharepoint 2007 

Remove "I like It" , "Tags & Notes" , RecycleBin and the default search box

Hello Is it possible to remove the "I like It" and "Tags & Notes" buttons? , the default "Search this site..." box in the top? And Recycle Bin... I want to remove/hide it so we cant see it on any of our websites. Thanks in advice...

SharePoint 2010 Search Service Application: "All Content" scope contains 0 items?

I've encountered a nasty bug in our setup. Our Search Service Application manages to crawl all content just fine. However, the scopes don't work. We've got a total of 570 items currently in our crawl database. 350 of these are of class 'People', and appear in the 'People' scope. The remaining 220 items should appear in 'All Content' as part of the intra (sites, documents etc), however the 'All Content' scope reports 0 items. I've tried the following: -Creating custom scopes (still 0 items) -Recreating the Search Service Application twice -Tried different accounts as the content access account. -Ensuring that the content access accounts do have 'full read policy' -Checked the crawl log for successful content (such as sites and documents). However, despite my efforts I still get 0 items for 'All Content'.  Has anyone else encountered this problem, or do you have any recommendation for us? Currently I don't see any other option than to reinstall everything.

Is there any possibility to define a search scope for a Survey

Hi All, I have a survey list in SharePoint. I need to define a search scope such that the search results are pulled only from this Survey list. I have created many scopes for lists and was always working fine without any issues. But now, i created a scope for the Survey list, with the rule to include items from the folder https://server/lists/Survey%20list.spx. Though there are around of 1000's of items in the list, after the crawl the number of items returned is zero. So, is there any way for defining a scope for a Survey? Thanks in Advance... Regards, Sivai... :)

Searching for custom properties in a default search

Hi all, I have added some custom properties in to Manage User Properties in my User Profile Service Application. The issue I'm having is that I'm unable to obtain search results from these properties. For example, if in the Enterprise Search / People tab I enter "Dave" and click search, then I'll be presented with results of people who's name matches "Dave". If I enter "Information Technology" then I'll get a list of all users who's department is "Information Technology". So far we're okay! But let's go back to the custom property. Let's say it's called "Clients" and it is for storing client names against the staff profiles. If I search for "Microsoft" and a user has Microsoft in their client property then no results are found. I've created the managed properties in the Metadata Property Mappings of my search service application, done full crawls but nothing. If I search for "clients:microsoft" then I get results. So the question is how do I or is it even possible to get custom metadata properties to show up in a default search? Thanks!

Dynamic scope for advanced search

Hi all, Is there possible for us to use dynamic scope or url as the filter in the advanced search? I want to search only to specific document library or some site while if I'm using global scope I will need to define a lot of scopes. anybody can give me some clue how I can make it works? thank youBest regards, -- Pingkan --

Set search scope as list

Hi, My requirement is to set the scope for a search box as particular sharepoint List/Library. By default, the search box has one dropdown to select the Scope, and i want to set the scope as a SP List. Please Guide me in this. Thanks in advance.

Custom Advanced Search to search in 1 scope only

I have a custom searchpage, search result, advanced search page and custom scope that configured in SSP. I can set the advanced search to redirect to my custom search result but the result is not from the custom scope (from "All Sites" scope). How do i configure it so that it will search from the custom scope via custom advanced search?

How to restrict search scope to a particular list?


I want to restrict the scope of Advanced Search box to a particular list.The scopes has only "All Sites" checkbox, but i want to search in a particular list.

Please tell me how can we restrict the scope of Advanced Search box to a particular list?

Thanks in Advance.

SharePoint 2007 Enterprise Search Scope Question



I have configured different search scopes to point to different search contents on my MOSS server and had them displayed on cope dropdown menu.  Everything is working great but with one issue; the selected scope from the default Search page does not stick on the Result page.

For example, I have three scope choices available on my scope dropdown menu: scope1, scope2, and scope3.  For this particular scope Display Group, I have selected "scope1" to be the default.  So when I go to the main Search page, "scope1" is shown as the default choice on the scope dropdown menu.  If I select another scope from the dropdown menu (e.g., scope2) and perform a search, it takes me to the Result page showing the result of the search and also shows what I typed in in the search text box.  The problem is that although I selected "scope2" on the original page's dropdown menu, the result page's dropdown menu shows "scope1" which is the default choice and not what I selected on the original page.  This behavior is confusing to my end users who want to refine their search from the Result page but then they have to re-select "scope2" from the dropdown menu.

My question is, is there a way for me to make the selected scope choice from the original page to stick on the Result page's s

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend