Script:-
Add-PSSnapin Microsoft.SharePoint.Powershell
$S = Get-SPEnterpriseSearchServiceApplication -Identity ”Search Service Application Name”
$Q =$S.QueryTopologies
$C =Get-SPEnterpriseSearchQueryComponent -QueryTopology $Q.ActiveTopology
$C | fl Name,State
$C[0] | Restart-SPEnterpriseSearchQueryComponent
Issue:-
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Server Search
Date: 6/30/2015 2:10:04 AM
Event ID: 2587
Task Category: Administration
Level: Warning
Keywords:
User: Domain\UserName
Computer: ServerName
Description:
The following conditions are currently affecting index propagation to this server for search service application 'Search Service Application': 1. Query 4 has been disabled so that crawls can continue. It may be recovered via the Restart-SPEnterpriseSearchQueryComponent command in PowerShell.