Sitecore Custom Language and SOLR Indexing Error
Recently we have added the Korean language to our multilingual Sitecore website. As we know Sitecore automatically creates dynamic fields in the SOLR schema. But while publishing we found the following issue in our logs:
Solution:
The error is in sitecore_web_index and it seems we are missing a dynamic field for the Korean language.
-
To solve this issue, we need to add the dynamic field in the SOLR schema
file:
<dynamicField name="*_t_ko" type=" text_general" indexed="true" stored="true" />
- Restart the SOLR
But take care that whenever you populate the managed schema from Sitecore, it will overwrite your managed schema, and you will lose all the changes.
Another approach is to customize the SOLR schema using backend code.
Step 1: Create a custom class and add the following logic:
Step 2: Create one more class that inherits from IPopulateHelperFactory implement the GetPopulateHelper method, and return your custom class from Step 1.
Step 3: Create a configuration file and patch your code in contentSearch.PopulateSolrSchema pipeline:
Reference: https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0848433
Happy Sitecoreing 😊
Comments
Post a Comment