Creating a search center site

Search queries can be conducted in a variety of different ways. The two common methods are searching within a SharePoint site and searching in a search center site. Searching within a SharePoint site typically uses the default search results page located in the /_layouts/ folder. These search queries are limited to only return results from the current SharePoint site.

Searching in a search center site uses web parts on customizable web part pages to submit and display the results of search queries. The results can include all of the content indexed by the search service application, regardless of where the content is located. In this recipe, we will create a new SharePoint site with a search center template. A search center site may be created as the root site of a new site collection from Central Administration or as a subsite of an existing site collection. In this recipe, we are adding the search center as a subsite to an existing site collection.

How to do it…

Follow these steps to create a new search center site:

  1. In your preferred web browser, navigate to the site collection to which we added our search site.
  2. Click on Site contents from the Settings menu.
  3. Click on new subsite from the Subsites section as shown in the following screenshot:
    How to do it…
  4. Provide a title, description, and URL for the new site in the Title, Description, and URL fields.
  5. Under Template Selection, select Enterprise Search Center from the Enterprise tab as shown in the following screenshot:
    How to do it…
  6. Click on Create.

How it works…

The search center site templates create sites with the intended purpose of searching. These templates include the required components, such as the search web parts for searching and displaying results. These templates use a minimalistic master page that is conducive to display search results in a user-friendly manner. In addition, unlike the search result page used when searching individual sites, the web part pages used in the search center sites can be easily customized.

There's more…

SharePoint sites may also be created with PowerShell or with code using the server-side object model. We covered this previously in the Setting up a new publishing site recipe in Chapter 5, Enhancing the Content Creation Process with the SharePoint Publishing Architecture; however, the site template to use when creating an Enterprise Search Center site is SRCHCEN#0.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.137.38