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

Modify Solr-web-plugin to store and use localized fields similarly to Lucene

    Details

      Description

      Problem

      • Consider a Web Content (Journal Article in the code), "en_US" as default_locale
      • When a new WC is being created, 3 of its fields (content, description, title) will be stored with and without localized postfixes in the LuceneDocument:
        content, content_en_US
        description, description_en_US (if it was added by the user)
        title, title_en_US
      • However, the SolrIndexWriterImpl does a wrong logic in the _getSolrInputDocument() method at indexing time, thus the title field will be stored like
        title_English (United States), and title won't be stored

      If a new translation (e.g. el_GR) is added to this WC, the the title field will look like
      title_Greek (Greece)
      title_Greek (Greece)_English (United States)

      This inconsistent indexing method causes problems at search time: the queries, executed by both Lucene and Solr, will contain the localized fields in the "Lucene form": content_xx_XX, description_xx_XX, title_xx_XX

      Conclusion: Solr should store these fields similarly to Lucene

        Attachments

          Activity

            People

            Assignee:
            sophia.zhang Sophia Zhang
            Reporter:
            tibor.lipusz Tibor Lipusz
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

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

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2
                --Sprint 11/12
                6.2.0 CE M2