Requirement: End-User wants to get only documents in search results!
Solution: In brief, create a new search scope of "ContentClass" Type "STS_ListItem_DocumentLibrary". This will filter search results with in all the documents under SharePoint document libraries.
At high level, to get filter search results by only documents, We are going to:
- Create a New Search Scope
- Add Rules to Search Scope
- Create New Page for Search Results
- Set Search Core Results Web Part Scope Property
- Add New Tab to Search Center, Link the Search Page crated
Step 1: Create a New Search Scope:Go to Central Administration >> Manage service applications >> Search Service Application (or whatever SSA created in your environment) >> Manage >> Click on "Scopes" Link in Search Administration.
Step 2: Add Rules to Search ScopeAdd Rules to our created scope by clicking "Add rules" link next to newly created scope.
- Choose "Property Query" in Scope Rule Type.
- Select "contentclass" in Property Query, enter "STS_ListItem_DocumentLibrary" as property value.
- Choose "Include..." under behavior.
Step 3:Create New Page for Search ResultsGo to Search Center site, Create a New Page (Don't have Search Center created? Then create a New page in your team site of "Search Results" Page Layout type).
Step 4: Set Search Core Results Web Part Scope PropertyEdit SearchAllDocuments.aspx page, Edit "Search Core Results" web part.
Step 5: Add New Tab to Search Center, Link the Search Page cratedGo to the Search Center site >> Get the Ribbon from Site actions >> Click on "Edit" button from the ribbon
As SharePoint 2010 supports search refinements, we can refine the results further by clicking appropriate links (e.g. "Word" under result type search refinements web part).
Using the same method, We can filter search results based on other properties supported. For all available ContentClass parameters, refer http://msdn.microsoft.com/en-gb/library/dd584327%28office.11%29.aspx
E..g. You want to get all task list items. or you may want to search only surveys or picture libraries, etc.
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management