Want to show kb articles that are of user language in contextual search, if the article is not present then show english article

Patiha
Kilo Contributor

Hi Team Community,

I have a requirement where I want to show kb articles to users of their language in contextual search results. I created a filter configuration which filters articles of user's language but it does not show the english article when the user language article is not present. 

Filter Configuration:

query_table.addQuery('language', gs.getSession().getLanguage();

So now this code gives results only of user language. I want to have the code where it shows user language article if present and English article if the user language is not present.

Thanks!!

 

3 REPLIES 3

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Try to enable multi language search and see if that works ?

find_real_file.png

You can enable from Knowledge properties.

Please hit like and mark my response as correct if that helps

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi @Musab Rasheed ,

This is on the contextual search results so I believe this is to make change on the filter configuration. Would be helpful if that can be suggested.

Thanks

Simran Sahu
Tera Contributor

did you got anything for this? @Patiha