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

At DDM custom fields, one copy for each portal language are stored at lucene index, even the site has only one language configured

    Details

      Description

      At DDM custom fields, we store at lucene one copy for each language in order to be able to search and sort using any of them.

      The problem is that we always use all configured languages at portal level, even we have an special configuration at site level:

      • At Liferay level: we have 12 languages (default configuration)
      • At Site level, we create one site with only one language.

      This cause to store a lot of innecessary data inside lucene index, spending time and space.

      Steps to reproduce

      1. Create a new site
      2. At Configuration => Site Settings => Display Settings, configure only one language: "English (United States)"
      3. Create a new structure with 5 fields
      4. Create a new webcontent, using the new created structure, save and publish it
      5. Check lucene index it will store the structure data at folowing fields: ddm_<structure-id>_<field-name>_<language>
      6. Wrong behaviour: one field is added for each portal language
      7. Expected behavior: one field is added for each site configured language

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 41 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M4