HOW TO IMPORT THESAURUS IN SHAREPOINT 2013
After creating a thesaurus successfully, your second step is to import it. We have already explained the steps to creating thesaurus in SharePoint in one of our previous tutorials. In this tutorial, we will learn the method to import the created Thesaurus.
Before you proceed, make sure that you have full access rights of the search service application administrator.
Let’s now begin with the Thesaurus import process –
Initially, you need to open up the SharePoint 2013 Management Shell. For this, go to the server having SharePoint 2013 installed and select the option.
Type following command in the command prompt –
$searchApp = Get-SPEnterpriseSearchServiceApplication
Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename <Path>
Where <Path> = your thesaurus file’s UNC path
That’s all you need to do for importing your created Thesaurus in SharePoint 2013.
One important thing that needs to be noted is that importing a thesaurus overwrites the existing one. If there are some new phrases to be added, make sure to add them to the file you imported before.
Also, exporting a Thesaurus file is not permitted in SharePoint 2013 and so you need to deploy an external system for suitably maintaining your file.