Try our conversational search powered by Generative AI!

Adding .UsingSynonyms() breaks stemming?


Has anyone noticed that stemming stops working when adding the .UsingSynonyms() feature to a search request?


var query = "Exhausts";
var result = SearchClient.Instance.Search(Language.English)
  .InFields(x => x.DisplayName,
            x => x.PageTitle)

results in 10 hits.. All with the word "Exhausts" in the page title.
Removing the .UsingSynonyms() results in 233 hits, including hits with both "Exhausts" and the stemmed word "exhaust" (which is the expected functionality)

I didn't think using stemming and/or synonyms were mutually exclusive?
In my perspective they shouldn't be.

Apr 27, 2017 0:35

If I recall correctly, I think there is a bug for UsingSynonyms, and you need to specify InFields before invoking UsingSynonyms

Apr 27, 2017 8:47
<p>Yeah, that did the trick. Thanks!</p>
Apr 27, 2017 19:21
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.