At a high level we have the:
- Search Service Application
- Search Topology
- Search Instance on each Server in the search topology
- Admin
- Crawler
- Content Processing
- Analytics Processing
- Query Processing
- Index
- Change the index location on the index component
- Add a index replica on another server in the farm
- Add additional components to other servers in the farm
- Remove components
When we create a clone by doing the following:
$ssa = get-spenterprisesearchserviceapplication
$clone = $ssa.ActiveTopology.Clone()
We get this when we look at the topology:
And we get this when we look at the components in the cloned topology: (Get-SPEnterpriseSearchComponent -SearchTopology $clone)
As you can see above, all of our components have blank IDs. If we wanted to remove a component from the topology how would we identify which component to remove? The Remove-SPEnterpriseSearchComponent –Identity switch wants an ID of the component to remove so we need to get a valid ID in order for this work.
Using the above method we can easily add additional components to the topology but we cannot remove.
Solution
After you capture your SSA run the following command:
$active = Get-SPEnterpriseSearchTopology -Active -SearchApplication $ssa
$Clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone -SearchTopology $active
Now we get this:
Now we have an ID field that we can use to easily remove a component from the topology.
{Kam}
No comments:
Post a Comment