For the SharePoint 2013 Search Topology Query Processing component we need to Disconnect and then to create new one using below script.
- $SearchApp = Get - SPEnterpriseSearchServiceApplication
- $active = Get - SPEnterpriseSearchTopology - SearchApplication $SearchApp - Active
- $clone = New - SPEnterpriseSearchTopology - SearchApplication $SearchApp - Clone– SearchTopology $active
- Get - SPEnterpriseSearchComponent - SearchTopology $clone
- Remove - SPEnterpriseSearchComponent - Identity "<Component guid>" - SearchTopology $clone - confirm: $false
- $wfe = Get - SPEnterpriseSearchServiceInstance - Identity "WebFront ENd Server Name"
- New - SPEnterpriseSearchQueryProcessingComponent - SearchTopology $clone - SearchServiceInstance $wfe
- Set - SPEnterpriseSearchTopology - Identity $clone
Thanks for reading my blogs.