Try our conversational search powered by Generative AI!

what is the language parameter that needs to be passed to UnifiedSearch(query,language)



I'm trying to use UnifiedSearch as :


But When I'm writing the code it is asking me to pass language parameter to UnifiedSearchFor method as :

UnifiedSearchFor(string query, Language language).

Not sure what is the language parameter I need to pass.

Any Ideas please.


Aug 30, 2013 7:47

Language is a class that has a number of static properties that you can use to provide a specific language for the query.

SearchClient.Instance.UnifiedSearchFor(searchQuery, Language.English).GetResult().
Aug 30, 2013 9:48

... and if you want to load the current language.

SearchClient.Instance.UnifiedSearchFor(searchQuery, Language.GetSupportedLanguage(ContentLanguage.PreferredCulture)).GetResult().


Aug 30, 2013 12:27

Hi Marcus

I'm able to pass the language parameter now.



Aug 30, 2013 13:07
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.