Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

SharePoint : Search queries fail with "The search request was unable to connect to the Search Service" error


View products that this article applies to.

Symptoms

Search results are not being returned.


Users receive the following message when performing a search query:


The following exception message may be displayed in the ULS log:

CoreResultsWebPart::OnInit: Exception initializing: Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetProxy(SPServiceContext ServiceContext)
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)

↑ Back to the top


Cause

The Search Service Application Proxy does not exist in the farm. The Search Service Application Proxy is responsible for the communication between the WFE's search web part and the Search Service Application on the application server.

↑ Back to the top


Resolution

If the Search Service Application does not have a proxy then create a new proxy using PowerShell cmdlets:

$searchServiceApp = Get-SPEnterpriseSearchServiceApplication

New-SPEnterpriseSearchServiceApplicationProxy -SearchApplication $searchServiceApp


↑ Back to the top


More Information

New-SPEnterpriseSearchServiceApplicationProxy
http://technet.microsoft.com/en-us/library/ff607722.aspx

↑ Back to the top


Keywords: kbprosharepoint, kbdiagnostics, kb

↑ Back to the top

Article Info
Article ID : 2888383
Revision : 1
Created on : 1/7/2017
Published on : 2/17/2014
Exists online : False
Views : 251