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.
My query component 5 is disabled but when I execute $C| fl Name,State then is giving like this
ReplyDeleteName: query-5
State: Offiline
Name: Query-1
Ready
Name: Query-6
Ready
Name: Query-2
Ready
Name: Query-0
Ready
Please can you suggest, what is index do I need to pass $C for Restart command. and also once we execute restart command will it restart IIS too?
-Ravi