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

Structure field types are not sorted correctly in the Asset Publisher with Solr

    Details

      Description

      Structure field types are not sorted correctly in the Asset Publisher with Solr.

      Steps

      1. Setup Solr
      2. Go to Admin > Site Administration > Content > Web Content > Manage > Structures
      3. Add a new structure with a Text Box, Boolean, Number, Integer, and Text field
      4. Go to Admin > Site Administration > Content > Web Content > Manage > Templates
      5. Add a new template that is linked to the structure created earlier and lists all the values, similar to this:
        ${Text_Box1686.getData()}
        ${Boolean1946.getData()}
        ${Number2186.getData()}
        ${Integer2428.getData()}
        ${Text2511.getData()}
        
      6. Go to Admin > Site Administration > Content > Web Content > Add and choose the structure created in step 5
      7. Add several new web content articles with the following values in order:
        A, checked, 1.1, 1, A
        D, unchecked, 1.4, 4, D
        B, unchecked, 1.2, 2, B
        E, checked, 1.5, 5, E
        C, checked, 1.3, 3, C
      8. Add an Asset Publisher to a page
      9. Go to Asset Publisher > Configuration > Asset Type
      10. Select Web Content Article, then the structure created earlier
      11. Go to Asset Publisher > Configuration > Ordering and Grouping
      12. For each filed in the structure created earlier, test ascending and descending values

      Expected
      All of the different types of fields should sort correctly
      Result
      Text and Boolean fields do not sort correctly

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              preston.crary Preston Crary
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5