March 1, 2023
I had a scenario where I needed to update the Thesaurus file for a SharePoint Server 2010 install. From what I could tell from the TechNet article on Managing thesaurus files, the file (tsenu.xml English, United States) should be located in the following directory:
%ProgramFiles%\Microsoft Office Servers\14.0\Data\Applications\<GUID>\Config\
The GUID is supposed to match the GUID of the Search Service Application. However, when I went into the Applications directory, I saw multiple GUID-based folders.
I went to Central Administration, but I wasn't seeing a matching GUID when looking at the URLs on the service applications.
In a SharePoint Management Shell, I tried running Get-SPServiceApplication, however, the GUID for the Search Service Application didn't match any of the folders either.
In the SharePoint Management Shell, I also tried running Get-SPEnterpriseSearchService, however no luck on the GUIDs there either.
I finally decided to brute force the answer. Here are the steps I took to figure out which file SharePoint was looking at: