Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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().
... and if you want to load the current language.
SearchClient.Instance.UnifiedSearchFor(searchQuery, Language.GetSupportedLanguage(ContentLanguage.PreferredCulture)).GetResult().
Hi,
I'm trying to use UnifiedSearch as :
SearchClient.Instance.UnifiedSearchFor(searchQuery).GetResult().
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.
Thanks.