I have a requirement to restore the search service application from the production environment to test server.
I am a bit confused with the below two command lets.
Restore-SPFarm -Directory -Item 'Farm\Shared Services' -Restoremethod-Overwrite
Restore-SPEnterpriseSearchServiceApplication -Name "SearchServiceApplication" -ApplicationPool $applicationPool -AdminSearchServiceInstance $searchInstance -DatabaseName "SearchServiceApplication_Admindb" -DatabaseServer "SQLServer1"
Could any one please elaborate the specific scenarios of the usage of the above two commands and which one is suitable for my requirement to restore the search application to different farm.