Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-138027

Missing languages (et_EE, fa_IR, gl_ES, in_ID, lt_LT) in the liferay-type-mappings.json Elasticsearch mapping configuration file

    Details

      Description

      There are several languages in Liferay (et_EE, fa_IR, gl_ES, in_ID, lt_LT) with an available analyzer bundled in the Elasticsearch server, that are missing in the liferay-type-mappings.json Elasticsearch mapping configuration file.

      We should configure all the languages with a available analyzer

      Steps to reproduce

      1. Go to Control Panel => Instance Settings => Localization
      2. Add following languages to the Liferay instance
        • Estonian (et_EE)
        • Persian (fa_IR)
        • Galician (gl_ES)
        • Indonesian (in_ID)
        • Lithuanian (lt_LT)
      3. Go to Control panel => Search
      4. Go to the "Index Actions" and Execute a full reindex
      5. Once the full reindex ends, go to the "Field Mappings"
      6. Open the field mappings of index "liferay-0"
      7. Copy the mappings to a text editor and check the "description_<languageId>" field of the problematic languages:
        • Expected configuration: the mapping contains a "analyzer" child node with the correct language analyzer
        • Wrong configuration: the mapping doesn't contain a "analyzer", it only contains the "store" and "type" children nodes

      Note: there are some languages in Liferay without an available analyzer in the Elasticsearch side, they are: Croatian (hr_HR), Hebrew (iw_IL), Kazakh (kk_KZ), Lao (lo_LA), Malay (ms_MY), Slovak (sk_SK), Slovenian (sl_SI), Serbian (sr_RS), Tamil (ta_IN), Ukrainian (uk_UA), Vietnamese (vi_VN).
      These languages are analyzed using the standard analyzer. As a workaround, you can always create a custom analyzer in Elasticsearch and apply them in the Liferay configuration.

      Solution Notes

      The fix requires to perform a full reindex through the Search admin.

        Attachments

          Activity

            People

            Assignee:
            brian.lee Brian Lee
            Reporter:
            jorge.diaz Jorge Diaz
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Bryan Engler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              14 weeks, 2 days ago
              Development End Date:
              Development Start Date:

                Packages

                Version Package
                7.3.X
                7.4.13 DXP GA1
                Master