Provisioning a search service application

The search service application handles the core functionality of search in SharePoint. In this recipe, we will provision a new search service application.

Tip

You can create multiple search service applications for a farm. This can be useful to segment indexed content for different web applications. For instance, the search service application used by a public-facing web application may be configured to index the content of the public-facing sites only, whereas a separate search service application used by an internal-facing web application may be configured to index all of the content on the farm.

How to do it…

Follow these steps to provision a search service application:

  1. Navigate to Central Administration in your preferred web browser.
  2. Click on Manage service applications from the Application Management section as shown in the following screenshot:
    How to do it…
  3. Click on Search Service Application in the New menu from the SERVICE APPLICATIONS tab in the ribbon as shown in the following screenshot:
    How to do it…
  4. Provide a name, such as Search Service Application, in the Name field for the service application.
  5. Select a managed account to use for the Search Service Account. The Search Service Account is used when indexing content. Any content that requires authentication should provide read access to this account.
    How to do it…
  6. Provide a name and select a managed account for the Application Pool for Search Admin Web Service. The managed account selected does not have to be the same account used for the Search Service Account.
    How to do it…
  7. Provide a name and select a managed account for the Application Pool for Search Query and Site Settings Web Service options.
  8. Click on OK. The operation will take a few minutes to complete.

How it works…

The search service application handles all of the core functionality of the SharePoint search. This includes indexing content, accessing the search databases, processing search queries, and so on. When a user searches in a SharePoint site, the query is processed by the search service application that is associated with the SharePoint web application in which the site is contained.

Service applications in SharePoint use application pools in Internet Information Services (IIS) to run their web services. The search service application uses two application pools, one for the administrative components and the other for the query and site-level components.

There's more…

Search service applications may also be provisioned with PowerShell.

Provisioning a search service application using PowerShell

Follow these steps to provision a search service application using PowerShell:

  1. Create a new application pool for the search service and assign it to a variable using the New-SPServiceApplicationPool Cmdlet as follows:
    $appPool = New-SPServiceApplicationPool -Name "Search Service Application Pool" -Account domainsearchuser 
    

    Tip

    To use an existing application pool, the Get-SPServiceApplicationPool Cmdlet may be used instead.

  2. Create a new search service application using the New-SPEnterpriseSearchServiceApplication Cmdlet and assign it to a variable as follows:
    $ssa = New-SPEnterpriseSearchServiceApplication -Name "Search Service Application" -ApplicationPool $appPool
    
  3. Create a new proxy for the search service application using the New-SPEnterpriseSearchServiceApplicationProxy Cmdlet as follows:
    New-SPEnterpriseSearchServiceApplicationProxy -Name "Search Service Application Proxy" -SearchApplication $ssa
    

See also

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

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