38 views

Symptoms


Switching to a non-default language and searching translated fields is not returning the expected results.

Release


All releases.

Steps to reproduce


  1. Log in to any multilingual instance and make sure that your current language is English.
  2. Create a new catalog item (sc_cat_item.do in the filter navigator) and give it the name "ipad".
  3. Switch to a different language 
  4. List the sc_cat_item table and try searching for "ipad" in the name column.
  5. The item added in step 2 is not displayed in the search results.

Cause


This behavior is reported on partially translated instances. The system will only search for labels from the current language. This means that search is querying translation tables of the current language.  

Resolution


Make sure that all your translated texts have translations in the sys_translated_text table. Even if the text is the same as English a translated text should be added. For the example above, switching to the language in question, navigating to the catalog item and just saving it will solve the issue.

Article Information

Last Updated:2018-09-25 05:51:22
Published:2018-09-25