I have a SharePoint 2013 portal running enterprise search. I have imported some thesaurus with the
Import-SPEnterpriseSearchThesaurus cmdlet. For example, let's say as a test I have associated the string "ABCD" with "opportunities." When I search for "ABCD" in the search center site collection, I get several results where the string "opportunities" is hit-highlighted, which is the expected behavior.
<myurl>/_api/search/query?querytext="ABCD", I get only results that match the actual string "ABCD," and nothing that contains "opportunities." It's as if the thesaurus terms were ignored when I execute the search over REST. I expect to get the same results that I get when I use the search center.
Is there anything I have to do to make this work? The REST interface is exposed anonymously, so I use a
QueryTemplatePropertiesURL parameter, and I make the query over HTTP GET. For other searches (ones that do not rely on thesaurus terms), I get the same results back when I execute the query in REST vs. the web interface in the search center.