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.
Follow these steps to create a new search center site:
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.
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
.
3.16.137.38