When configuring SharePoint Search for customers I often help them configure their SharePoint Enterprise Search center. Companies usually index various content: SharePoint, Web Sites, File Shares, and it's always good to divide different content sources with tabs, just as popular Search Engines like Google and Bing do.
So what do you need to do to have something similar in your SharePoint site? Here is the complete walkthrough.
Configuring Search Scopes
Before configuring search scopes you have to properly configure Content Sources, you should also read about managing Search Scopes.
- Login to SharePoint Central Administration
- Navigate to Central Administration > Application Management > Manage Service Applications > Your Search Service Application
- In the Quick Launch click Scopes
- Create a new scope: MyCustomScope
- Once the scope is created, click Add Rules to add rules
- Configure your scope to filter only results you want to display here e.g. only files from your file share
- Save
Configuring Search Tabs
To configure Search Center you first need to create one (make sure SharePoint Standard and Publishing site collection features are enabled). I recommend installing SharePoint 2010 Master Page Adapters for Search so that your Search Center gets normal navigation.
Here is what you need to do to configure search pages:
- Navigate to your Search Centar
- Click Site Actions > New Page
- Enter page name, e.g.: MyCustomPage
- New page will open in Edit mode
- Find the Search Core Results web part and from the context menu choose the Edit Web Part option
- In the Web Part properties pane in the Scope field enter MyCustomScope
(this field is located in the Core Results > Location properties group) - Click Apply and then OK to close Web Part Pane
- Open Search Box web part properties with Edit Web Part option
- Enter MyCustomPage.aspx to Target search results page URL field in the Miscellaneous group
- Click Apply and then OK to close Web Part Pane
- Click Save on the Page ribbon to save the page
Please note: If Pages library requires Check-in or approval, make sure you do both otherwise this page will only be visible to admins.
There are two lists you need to configure to get search tabs in place, these lists are located at:
- http://your_site_collection/your_search_site/SearchResults/AllItems.aspx
- http://your_site_collection/your_search_site/SearchCenter/AllItems.aspx
Add links to the MyCustomScope.aspx page.
After you have completed this you will have a new tab in your search center.