November Happy Hour will be moved to Thursday December 5th.

How are multi word synonyms supposed to work in EPiServer Find?

Vote:
 

Hi, we have a case with a customer who wonders whether they can map multiple word phrases to synonyms. I thought yes, but that does not seem to be the case after some experimentation. So the question is whether this particular use case is not supported or if we have made some error when setting up the client.

The use case:

Given the synonym mapping skjuta upp, förhala, senarelägga <> prokrastinera

When searching for skjuta upp

Then I should get results including pages containing prokrastinera

This does not work in the case of skjuta upp. The single words works as expected, though.

The client setup

var find = SearchClient.Instance
    .UnifiedSearch(Language.Swedish)
    .For(query)
    .WithAndAsDefaultOperator()
    .UsingSynonyms()
    .ApplyBestBets();


So, can you use multiple words in the phrase field or is it only supported in the synonym field of the synonym settings view?

/David 

#174952
Feb 08, 2017 13:48
Vote:
 

I do not think that it is supported David, I read up on Elastic search page and it is problem in elastic so if not Episerver has implemented their own logic I do not think it will work

https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-word-synonyms.html

/Henrik

#174954
Feb 08, 2017 13:59
Vote:
 

Yes, I read that too and got the impression this could work using contraction and wasn't sure if this is what the synonym settings was doing behind the scenes.

Our empirical evidence shows it isn't supported, though :)

#174955
Feb 08, 2017 14:21
* 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.