SP 2016: Thesaurus imported, but search cannot find synonyms

juschra 1 Reputation point
2020-10-29T08:04:27.383+00:00

Hello,
I successfully imported thesaurus file in Sharepoint 2016-Server with the introduction from microsoft-SP-Site (https://learn.microsoft.com/en-us/sharepoint/search/create-and-import-a-thesaurus)

I also get the message: "Dictionary imported successfully."

But when I search the synonym my search didn't find a result - also not after a full crawl.

I imported the thesaurus file with Search-Admin.

What can be the mistake? Must I set anything I did not know?

Thanks for answers.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,330 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,935 questions
{count} votes

2 answers

Sort by: Most helpful
  1. juschra 1 Reputation point
    2020-10-29T14:05:38.047+00:00

    I found the solution - restart the service "SharePoint Server Search 16" helped!

    Now the thesaurus works - but not for fields from taxonomy.

    I searched for "Unternehmen:unternehmen1" - but when I search for the synonym "Unternehmen:u1" nothing is found.... :-(

    0 comments No comments

  2. Allen Xu_MSFT 13,821 Reputation points
    2020-10-30T09:30:29.027+00:00

    Hi @juschra ,

    I can reproduce your issue in my end.

    This is my thesaurus file imported into SharePoint:
    36267-1-1.png

    My test list structure:
    36239-1-2.png

    When I search without using managed property, it works fine:
    36240-1-3.jpg

    However, it doesn’t return results when I search by using managed property with synonym:
    36179-1-4.jpg

    Per my research, the PowerShell command “Import-SPEnterpriseSearchThesaurus” makes synonyms work only in the query processing as below description:
    36217-1-5.png

    So this is by design that we couldn't search using "managed property: synonyms" syntax since the synonyms only play a role in query processing and cannot update property values with related properties in the property store database.

    I hope this information has been useful, please let me know if you still need assistance.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.