Search for a single site
I have a MOSS farm with multiple sites.
I have SharedServices set up, and a separate Content Source for my sites. However, I can't find how to restrict my intranet site to read from the intranet Content Source. It's pulling records from all the sites on the server.
Also, is there a way to limit the returned data to certain types, eg: .doc, .xls, Announcement list items?
Guidance appreciated.
September 3rd, 2010 6:23pm
Hi,
You could create a separate SharedService and associate with your web application. Since the SSP's are shared across web applications the search results are returned from all the web applications
I you do not intend to create a new SSP then you could use search scopes. Create a search scope for your site and then add a rule to include the results you desire and discard all the other
More information:
http://blogen.siderys.com/2009/02/creating-scopes-for-search-in.html
Detailed
steps:
1) Go
to Your top site > site actions > site settings >
modify all site settings > site collection administration > search scopes.
2) Click new
scope in the tool bar to the new scope page.
3) Select advanced
search in the display group section.
4) Click ok.
Return back to 1) page
5) Click add
rules after your new scope and go to add new scope rule page.
6) Select web
address in scope rule type section.
7) Copy
your site URL into the folder textbox in web
address section.
8) Select include in behavior section.
9) Click ok.
10) Then
go to the advanced search page > site actions > edit
page
11) Click
the edit in the menu of advanced
search box web part > modify shared web part
12) Go
to Advanced search box property panel > scopes
13) Select show
the scope picker check box
14) Click ok
To answer the next part you need to create search scopes and us the content class to filter different type of items IsDocument:1 returns only documents and filters all other results
Refer below list
case “STS_Web”:
// Site
case “STS_List_850″: // Page Library
case “STS_ListItem_850″: // Page
case “STS_List_DocumentLibrary”: // Document Library
case “STS_ListItem_DocumentLibrary”: // Document Library Items
case “STS_List”: // Custom List
case “STS_ListItem”: // Custom List Item
case “STS_List_Links”: // Links List
case “STS_ListItem_Links”: // Links List Item
case “STS_List_Tasks”: // Tasks List
case “STS_ListItem_Tasks”: // Tasks List Item
case “STS_List_Events”: // Events List
case “STS_ListItem_Events”: // Events List Item
case “STS_List_Announcements”: // Announcements List
case “STS_List_Contacts”: // Contacts List
case “STS_ListItem_Contacts”: // Contacts List Item
case “STS_List_DiscussionBoard”: // Discussion List
case “STS_ListItem_DiscussionBoard”: // Discussion List Item
case “STS_List_IssueTracking”: // Issue Tracking List
case “STS_ListItem_IssueTracking”: // Issue Tracking List Item
case “STS_List_GanttTasks”: // Project Tasks List
case “STS_ListItem_GanttTasks”: // Project Tasks List Item
case “STS_List_Survey”: // Survey List
case “STS_ListItem_Survey”: // Survey List Item
case “STS_List_PictureLibrary”: // Picture Library
case “STS_ListItem_PictureLibrary”: // Picture Library Item
case “STS_List_WebPageLibrary”: // Web Page Library
case “STS_ListItem_WebPageLibrary”: // Web Page Library Item
case “STS_List_XMLForm”: // Form Library
case “STS_ListItem_XMLForm”: // Form Library Item
case “urn:content-class:SPSSearchQuery”: // Search Query
case “urn:content-class:SPSListing:News”: // News Listing
case “urn:content-class:SPSPeople”: // People
case “urn:content-classes:SPSCategory”: // Category
case “urn:content-classes:SPSListing”: // Listing
case “urn:content-classes:SPSPersonListing”:// Person Listing
case “urn:content-classes:SPSTextListing”: // Text Listing
case “urn:content-classes:SPSSiteListing”: // Site Listing
case “urn:content-classes:SPSSiteRegistry”: // Site Registry Listing
More information:
http://blog.3i-solutions.nl/2008/01/creating-search-scopes-based-on.html
Please remember to mark your question as "answered" if it solves your problem.
My SharePoint Blog
http://dhireny.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 5th, 2010 11:05am
Much obliged Dhiren. Looks like I've got some reading to do :)
September 7th, 2010 4:41pm
Generally speaking, is it best to create multiple SSPs? Benefits/detriments?
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2010 7:34pm