London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Search and Navigation - Chinese results don't display

Vote:
0

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:
0

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:
0

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:
0

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.