How to Create an Enterprise Search Center in SharePoint 2010

Suppose we have some requirements that we want to see items that are not documents in our search results. In such situations we need to set up a Custom Search Center where they can search for either/all content, people, or just documents. Here we are going to create a new Search Center and a new tab for only documents. When users select this tab, only items that are documents appear in their search results.

Some of the new features of SharePoint 2010 Search are listed below

  1. Boolean query syntax has finally been introduced. These include AND, OR and NOT operators in your search queries.
     
  2. Suggestions whilst typing and after running search queries, a feature that we have come to love with major search engines such as Google and Bing.
     
  3. Integrating SharePoint Enterprise Search with Windows 7, allowing end users to utilize the Windows 7 search box to locate SharePoint 2010 content.
     
  4. Results display has been refined to provide filters for search results such as document type, categories and managed properties.
     
  5. View in Browsercapabilities, allows end users to view documents within their own browser utilizing Office Web Apps and not having to rely on launching the necessary Microsoft Office Application, or even the need for having it installed on their local machine. This is handy when browsing your SharePoint site via Kiosks and Internet Cafes that may not be running the Microsoft Office Suite.
     
  6. There have been a number of improvements to People Search, including phonetic name and nickname matching, and improved relevance and self-search.

Create an Enterprise Search Center and a Custom Search Box Page

  1. Navigate to your web application.
     
  2. Click Site Actions, and then click New Site.
     
  3. In the Create dialog box, click the Search category.
     
  4. Select the Enterprise Search Center template.

    1.png
     
  5. Enter a Title and a URL Name of Documents and click Create.
     
  6. Click Site Actions, and then click More Options.

    3.png
     
  7. In the Create dialog box, click the Page category.
     
  8. Select the Publishing Page template, and then click the Create button.

    2.png
     
  9. Enter Documents in the Title text box.
     
  10. Enter Documents in the URL Name text box.
     
  11. Select (Welcome Page - Search box) in the Page Layout section list.
     
  12. Click the Create button.
     
  13. Click the Save & Close button on the Ribbon.

Create a Custom Search Results Page

  1. Click Site Actions, and then click More Options.

    3.png
     
  2. In the Create dialog box, click the Page category.
     
  3. Select the Publishing Page template, and then click the Create button.

    2.png
     
  4. Enter a DocumentResults in the Title text box.
     
  5. Enter DocumentResults in the URL Name text box.
     
  6. Select (Welcome Page - Search results) in the Page Layout section list.
     
  7. Click the Create button.
     
  8. Click the Save & Close button on the Ribbon.

Modify the Search Core Results Web Part to Return Only Documents

  1. Verify that you are on the DocumentResults Search Results page you just created earlier.
     
  2. Click Site Actions, and then click Edit Page.
     
  3. Locate the Bottom Zone in the Web Part page.
     
  4. Locate the Search Core Results Web Part.
     
  5. Hover your mouse over the upper right corner of the Web Part until a down arrow displays. Click the down arrow to display the Web Part menu.

    4.png
     
  6. Click Edit Web Part.
     
  7. Locate the Search Core Results tool pane in the upper right corner of the Web Part page. Expand the Result Query Options section.
     
  8. Enter IsDocument:1 into the Append Text To Query text box.

    5.png
     
  9. Click the OK button of the Search Core Results tool pane.
     
  10. Click the Save and Close button to save and close the DocumentResults.aspx page.

Add a Custom Tab to the Search Center and Modify the Search Box Web Part
 

  1. Navigate to the site we created in earlier.
     
  2. Click Site Actions, and then click Edit Page.
     
  3. Locate the Add New Tab link and click it.

    6.png
     
  4. In the Tabs In Search Pages item dialog, enter a Tab Name of Just Documents.
     
  5. Enter documents.aspx in the Page text box.
     
  6. Click the Save button.
     
  7. Click the Browser Refresh button so the Just Documents tab displays.
     
  8. Click Site Actions, and then click Edit Page.
     
  9. Locate the Search Box Web Part.
     
  10. Click the upper right corner down arrow to display the Web Part menu.

    7.png
     
  11. Click Edit Web Part.
     
  12. Locate the Search Box tool pane in the upper right corner of the Web Part page. Expand the Miscellaneous section.
     
  13. In the Target search results page URL, enter documentresults.aspx.

    8.png
     
  14. Click the OK button of the Search Box tool pane.
     
  15. Click the Save and Close button to save and close the default.aspx page.

 

Up Next
    Ebook Download
    View all
    Learn
    View all