Episerver Find and short forms / conjugation

Vote:
 

I have an index that's only in Swedish. If I search for the name "Tomas" Episerver Find also searches for "tom", which I guess is because it's a short form of Tomas in english? However, in swedish "tom" is another word and it's quite weird to get results for "tom" when searching for "tomas".

Is there a way to control this behaviour? I have tried setting the language in the query without luck.

Thanks,

Magnus

#207823
Oct 04, 2019 14:05
Vote:
 
#207828
Edited, Oct 04, 2019 20:21
Vote:
 

I think this is a result of stemming. Read this article:
https://world.episerver.com/blogs/viktor-sahlstrom/dates/2016/82/episerver-find-stemming/

Maybe you should contact Episerver support and ask that they add my name (Tomas) to the list of words excluded from the Swedish (and Norwegian) stemming.

You may also turn off stemming entirely, specifying SearchLanguage = Language.None, like this:

SearchClient.Instance.Search<IContentData>(Language.None)
	.For("Tomas")
	.GetContentResult();
#207829
Oct 04, 2019 21:17
Magnus Eriksson - Oct 08, 2019 9:06
Thanks Tomas. I've contacted support and they can reproduce and will probably add 'tomas' to the exclusion list.

Regards,
Magnus
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.