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

Contents order in Asset Publisher is incorrect when using Solr

Details

    Description

      Description
      Contents order in Asset Publisher is incorrect when using Solr 5.
      This issue is not reproduced with embedded elastic search.

      Steps to Reproduce

      1. Prepare Solr environment instead of embedded elastic search
      2. Start Liferay with SP4+FP29
      3. Go to default site > Content > Web Content, add three basic web contents "test1", "test2", "test3" and edit each content to set metadata as follows:
         test1:
          Metadata > Priority > 10.0
         test2:
          Metadata > Priority > 40.0
         test3:
          Metadata > Priority > 5.0
      4. Go to default site > any page, and Place Asset Publisher Portlet
      5. Go to default site > any page > Asset Publisher Portlet > Configuration, and edit as follows and Save
         Set Up > Asset Selection > Ordering and Grouping
          Order by [Priority] [Descending], And Then [Title] [Ascending]
      6. Go back to page and check the contents order in Asset Publisher

      Expected Behavior
      The order is expected as follows:

      • test2 (priority: 40.0)
      • test1 (priority: 10.0)
      • test3 (priority: 5.0)

      Actual Behavior

      • test3 (priority: 5.0)
      • test2 (priority: 40.0)
      • test1 (priority: 10.0)

      Reproduced in:
      de-29
      7.0.x(74ab4de91d585c3e80a472c5c061203e6e77897c)
      master(5ed3c2cb5e0cc8a20a6a2e8c43b12cff60607ad6)

      Attachments

        Issue Links

          Activity

            People

              summer.zhang Summer Zhang
              david.zhang David Zhang (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 10 weeks, 3 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP33
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.1.X
                  Master