DFO 4.0.0 - Indexing of Assets in multiple languages

As Optimizely Find index based on unique ContentGuid index, it’s possible to add Folders for different languages.

Because for every language in DAM there is a related folder with unique Id.

But for files it’s not allowed, because there is only one file for all languages.

So, the ContentGuid property is the same for all languages.

It means that only first language will be added to the Index, all other languages will be skipped.

For resolving this issue and adding multiple languages to the Index, there is a code for replacing last symbols in ContentGuid with LanguageId:

... item.ContentGuid = new Guid(item.ContentGuid.ToString().Substring(0, item.ContentGuid.ToString().Length - language.LanguageId.ToString().Length) + language.LanguageId.ToString()); ...

This solution doesn’t affects ContentLink, so Asset is available by ContentLink.

With this solution it’s possible to search Assets in different languages.

 

Assets settings in DAM

 

Index overview

 

Search result on the website