Introducing Azure Cognitive Search Culture Support

Version:

Caution

Azure Cognitive Search will be discontinued in the future and Sitecore will no longer provide support for this service in future releases.

The Azure Cognitive Search Culture Support feature enables users to direct their search request at content written in a specific language or languages. This is achieved by the support of language analysis on a per field/language basis. Field data for each language is automatically stored within the search index in two fields:

A generic field <field_name>_s

A language-specific field with a trailing language suffix <field_name>_s_t_<language_code>

The type of information stored in an index

Azure Cognitive Search supports multiple languages in Sitecore. On the Content* tab, you can set up two language fields in Sitecore to store values, for example, for both English and Danish.

EnLanguageField.png
DaLanguageField.png

Azure Cognitive Search stores the data for the English version (azureuniqueid=1) in the following way:

Field nameField value
field1_sEnglish field1
field1_s_t_daNull
field1_s_t_enEnglish field1
field2_sEnglish field2
field2_s_t_daNull
field2_s_t_enEnglish field2

Similarly, Azure Cognitive Search stores the data for the Danish version (azureuniqueid=2) in the following way:

Field nameField value
field1_sDanish field1
field1_s_t_daDanish field1
field1_s_t_enNull
field2_sDanish field2
field2_s_t_daDanish field2
field2_s_t_enNull

Searching with Azure Cognitive Search Culture Support

You can search for items that contain fields with content in a specific language by using the Sitecore language filter.

LanguageFilter.png

If you reduce your search to a specific field, the language filters generate a search query and apply it to items in that field that have content in your specified language:

SpecificLanguageFilters.png
If you have suggestions for improving this article, let us know!