Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Adding .UsingSynonyms() breaks stemming?

Vote:
 

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


Example:

var query = "Exhausts";
var result = SearchClient.Instance.Search(Language.English)
  .For(query)
  .UsingSynonyms()
  .InFields(x => x.DisplayName,
            x => x.PageTitle)
   .Take(100)
   .ProjectToFindListItemGroup()
   .GetResult();

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.

#178017
Apr 27, 2017 0:35
Vote:
 

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

#178020
Apr 27, 2017 8:47
Vote:
 
<p>Yeah, that did the trick. Thanks!</p>
#178051
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.