Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Tuesday, June 30, 2015

Script for SharePoint 2010 Query Server Not Responding Issue - Fixed


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.


1 comment:

  1. My query component 5 is disabled but when I execute $C| fl Name,State then is giving like this
    Name: 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

    ReplyDelete