Try our conversational search powered by Generative AI!

Search and Navigation - Chinese results don't display

Vote:
 

I have a multi lingual site. Search results work fine for English, French and German, but for Chinese, Korean and Japanese, no results are returned.

I think maybe I am indexing incorrectly. When I search, if I set supported language to Chinese, I get no results, but if I set supported language to English, I get my Chinese results.

Here is my query:

ar query = this.SearchClient.UnifiedSearchFor(q, Language.English)
	.UsingSynonyms()
	.TermsFacetFor(x => x.SearchSection)
	.FilterFacet("AllSections", x => x.SearchSection.Exists())
	.Filter(x => !x.MatchTypeHierarchy(typeof(MediaData)))
	.Filter(visitorFilter)
	.ApplyBestBets();

Changing the supported language parameter to the actual language returns no results.

How do I ensure I am indexing multiple languages correctly?

#276872
Mar 22, 2022 14:53
Vote:
 

Hi,

When you say you may be indexing incorrectly - have you made customisaitons fo the Search and Navigation indexing that may affect languages?

Check the content of your search and navigation index here:

There should be an index item for each language version of a piece of content.

Are you able to confirm if Chinese versions of content are indexed here?

#276887
Mar 22, 2022 16:01
Vote:
 

So, it looks to me like Chinese content is indexed - so Im confused as to why it doesnt get returned when I set the supported language in my Query.

#276908
Mar 22, 2022 16:56
Vote:
 

I think the second paramter to UnifiedSearchFor is only the analyzer being used for stemming etc?

FilterForVisitor includes PublishedInCurrentLanguage and should filter away content not in the current language.

https://world.optimizely.com/documentation/developer-guides/search-navigation/Integration/cms-integration/Filters/

Try without this line?

.Filter(visitorFilter)
#276926
Mar 22, 2022 21:25
* 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.