SharePoint By Yagya Shree

SharePoint 2013: How to remove search component

leave a comment »

Issue:

We are trying to remove a search component which is no longer required in Search service application.

Resolution:

We ran below powershell commands to remove the component from any application server:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#To get component ID:
$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone –SearchTopology $active

Get-SPEnterpriseSearchComponent -SearchTopology $clone

#To Remove Component ID:

Remove-SPEnterpriseSearchComponent -Identity 73caecca-2126-4a7d-b45c-2632a90d7109 -SearchTopology $clone -confirm:$false

#Activate the new search topology
Set-SPEnterpriseSearchTopology -Identity $clone

Advertisements

Written by Yagyashree

February 8, 2016 at 10:23 pm

Posted in sharepoint

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: