.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

How to search across site collections for specific content

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


We have many site collections of identical structure:




I am trying to retrieve a list of events (e.g. where Modified > mydate) from a number of lists and am having no luck using full text query to either:

Search the Path, ows_Url for specific paths

Or, Idenitfy something that will let me filter on a list / doc library by its internal id (or something)

Similar to that I need to group the results by their source...contentclass and contenttype doesnt cut it i need the actual source name or path (path is not retrievable)

Any ideas?

View Complete Post

More Related Resource Links

Search across multiple site collections


I am working on a MOSS 2007 farm and like to know what would be a best way to setup Search so that I can search across multiple Site Collections? Basically, our SharePoint farm use to have only one site collection with lots of subsites. We reorganized and  promoted a lot of those subsites to site collections. After the promotion, I noticed that on each of the new site collection under the search dropdown, the only search scope that was available was “This Site”. I was able to fix this by changing search settings and creating a custom scope by providing the link to the Search Center site that had already existed in the root site collection. However, when I try to search from any site collection using the "All Sites" search scope, no results are displayed and I get a blank page. Any idea what I might be doing wrong? Thanks in advance for your help.

Use centrally defined search scopes in departmental site collections?


I have SSE 2010 installed and functioning.  Seven "shared" scopes have been defined and show as having the expected number of items.   In my departmental web apps I have created Advanced Search and results pages so the users do not have to leave their own web app to do searches across those defined scopes.  Unfortunately the only way I found to make those scopes available in their Advanced Search web part was to "copy" the shared scopes (they display in an "unused scopes" group with no options for use).   The copy allows me to specify that the scope should appear in the Advanced Search web part and/or in the search box dropdown.   Is there anyway to use those "unused" shared scopes without creating a complete copy set of them in every site collection?   Thanks for any assistance you can provide!

Host-named site collections and content deployment jobs (SharePoint 2007 Internet facing Web Sites)



I have an editing web application with multiple site collections (only accessible internally on a dedicated port), and I've one public facing web application (on port 80). Now I want to create several host-named site collections in the public facing web application (to limit the number of web apps in the farm), and then use content deployment jobs to push the content from the site collections on the editing web app into these host-named site collections.

Does anyone have any experience with this?
Do you see any issues?


How can I specify my search scope on a specific site? using sharepoint 2010



if I’m in Site1 my search scope needs to be specified only to Site1 and when I go to Site2 my search scope needs to be specified only to site2?

How to initialize a search based on a specific content type?



how can I specify a search based on content types? Example:

I have a content type called "mobile phones" with the columns model and mobile owner. When I click the button "search mobiles" I want to see the fields model and mobile owner as input field for my specific search.

How can I generate such a search mask?

Thank you very much indeed for helping me!

Create web site specific to mobile device, how to detect?



I have a website that is written in .Net 2.0 which uses all the nice rich functionality of the web (Ajax, javascript etc..).  However I have noticed that the site does not display very well on mobile devices. 

So therefore I would like to create a more streamlined version of my site that is better tailored to these devices.  However how do detect that the user has come to the site via a mobile device and how can i redirect them to my tailored page

Many thanks in advance

Find It: Integrate Search Into Your Site With ASP.NET


We implement search providers for both Live.com and SharePoint so you can take advantage of either in your own applications.

Marco Bellinaso

MSDN Magazine September 2007

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 Usage Reports Missing for Site


We have Usage Analysis enabled on our employee portal farm.  The SSP in this farm crawls all local SharePoint sites and one child farm.  When we view search and query reports, one of the site collections (in a dedicated web app) is missing.  All other web apps/site collections appear in the search/query reports.  The missing site collection is using the standard search pages and web parts - no customization with the object model that might break usage logging.

Has anyone else ran into this or know the solution?

Search does not find text in Word document stored in document library on a Report Center site within



We have a document library on a site created off of the Report Center site template. We uploaded a Word 2007 document with the word zebra in the text. Using the search bar at the top of the page we selected This list: Our document library and searched for zebra. We received no results.

We tested the same thing on another site (site template Team site) within the same site collection and search worked fine.

Does the Report Center search function differently then the search functionality on the Team site?

Tamara Bredemus SharePoint Minion...working up to Maven

sharepoint search pdf files using metadata and also the content inside pdf

I am a novice to sharepoint search can anyone give some ideas on how to integrate search at a subsite level (only to that subsite) which has pdf documents with metadata associated with it the search should also search the content within the pdf and libraries and list metatdata in Moss 2007

How to create a single entry page for site collections in MOSS 2007



I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.

workflows when saving site as template with content

I have have a MOSS 2007 site on a production server with custom workflows.  I saved the site as a template with content and used the template to create a sibling site.  I am testing it and the workflows aren't working.  Is this to be expected? I have read that workflow don't work when saving between development and production, but I can't find anything that addresses both sites being on production. Will I need to recreate the custom workflows by hand? 

Portal Search Work - Site Collection Search Does Not


In our SharePoint installation we have an SSP which indexes local office sharepoint server sites.  However there is a problem, although we can do portal searches which reveal search results it is not able to do local searches at the site collection level and as a result we are presented with the typical error below.


No results matching your search were found.

  1. Check your spelling. Are the words in your query spelled correctly?
  2. Try using synonyms. Maybe what you're looking for uses slightly different words.
  3. Make your search more general. Try more general terms in place of specific ones.
  4. Try your search in a different scope. Different scopes can have different results.

I am unsure as to why this strange event is occuring.  We do not have the WSS Search component running in the MOSS environment as the SSP service should be able to index and server search queries at the portal and local site collection level.


Any thoughts to this?



Displaying the Server Ribbon and Site Actions Menu on Customized Search Pages Upgraded to SharePoint

Learn how to add the Site Actions menu and SharePoint Server ribbon to SharePoint Server 2007 search pages that you upgrade to SharePoint Server 2010 by using visual upgrade.

Video: SharePoint 2010 Web Applications, Site Collections, and Sites

This demonstration shows how to work with Web Applications, Site Collections and Sites programmatically. (Length: 4:02)

User Alert Management for a specific list versus entire SharePoint site?

It seems that to be able to manage User Alerts, one must have Full Access to the entire SharePoint site - and then use => Site Settings > User Alerts. Ideally, I would like to be able to grant access to users to only be able to manage alerts for a specific list. Is this possible (without having to do any programming) and, if so, how? If such access is only available at the site level, I will simply create a Permission Level that allows one to only "Manage Alerts" Thanks in advance for any assistance. Dave
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