In the test environment, if the following error occurs when you try to modify the topology of the search service application:
PS c: \ Users \ administrator. p1119vspex> set-spenterprisesearchtopology-identity $ newtopology
Set-spenterprisesearchtopology: Topology activation failed. Each partition must have at least one index component
From the previous topology in the new topology, in the same host. Otherwise this change cocould cause document loss.
At line: 1 CHAR: 1
+ Set-spenterprisesearchtopology-identity $ newtopology
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
+ Categoryinfo: invaliddata: (Microsoft. offic... tsearchtopology: setsearchtopology) [set-spenterprisesea
Rchtopology], searchtopologyactivationexception
+ Fullyqualifiederrorid: Microsoft. Office. server. Search. cmdlet. setsearchtopology
Solution
==================================
The best solution should be to change and keep the original index component, apply once. Then remove the original index Comonent and apply again.
The author is in a test environment, so there is no issue that the index service is affected, so the index is directly reset.
Try the apply command set-spenterprisesearchtopology again, and the application is successful!
Therefore, if the graph is easy to use, the reset index can also solve this error.