In this blog post:
NOTE: Thesaurus is not available in SharePoint Online.
Why synonyms matter when you search
People are different. Not only do we look and dress differently, but when we communicate, we use different words to describe the same thing. The same applies to how we search for information. In a search engine, you might enter “flower image,” whereas I might enter “flower picture” or “flower photo.” Even though we used different phrases, we were searching for the same information.
And then there are acronyms. Acronyms are especially popular in organizations, but when you search for information, this can be a challenge. For example, if you want to see the Monthly Sales Report, you’ll most likely search for it by using the terms Monthly Sales Report. However, the people that create this report might use the acronym MSR. So, when you search for Monthly Sales Report, no search results are returned.
In SharePoint Server 2013 you can easily create and upload a thesaurus that contains synonyms for search phrases and acronyms. In this blog post, I’ll use a simple example to show you how you can do this.
Imagine that you have two documents in a library:
- A Word document titled “Coffee.”
- A PowerPoint document titled “Cup of Joe.”
- Open a text editor, for example Notepad.
- In the text editor, enter the columns of your thesaurus: Key, Synonym, Language
- Use commas to separate the words.
- On a new line in the text editor, enter a term or a phrase, a synonym for that term or phrase and a two letter language code. Use commas to separate the phrases, for example Coffee,Cup of Joe,en
NOTE: To import a thesaurus, you have to be a Search service application administrator.
- At the command prompt, enter the following command:
$searchApp = Get-SPEnterpriseSearchServiceApplication
Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename <Path>
where <Path> is the UNC path of your thesaurus file.
Create and deploy a thesaurus in SharePoint Server 2013