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

When configuring the Folder Facet, I can choose from different ordering options so that facet terms are displayed according to the sort strategy

Details

    Description

      Acceptance Criteria

      1. When configuring the facet, the user can choose from different ordering options to sort terms:
        • Term frequency descending (default)
        • Term frequency ascending
        • Term value ascending
        • Term value descending
        1. Displayed as a simple dropdown called "Order Terms By" after the "Frequency Threshold" field
        2. Allows to choose a single option
        3. The default behavior is order by term frequency in descending order
      2. When performing a search, facet terms are displayed according to the ordering strategy configured
      3. In the event of a tie breaker where 2 or more term buckets have same frequency, use the "order by term key asc" as a secondary order strategy internally

      Testing / Validation

      Use Case #1: Text Only Folder Names

      1. Create a DL Folder "Sales"
      2. Create a DL Folder "Community"
      3. Create a DL Folder "Product"
      4. Create a DL Folder "Engineering"
      5. Upload a different number of files to each
      6. Perform a search with Test Test
      7. Assert that the facet terms are ordered by their frequency descending
      8. Use the configuration screen of the widget test with the other ordering options
      9. Assert that the facet terms are ordered according to the configured strategy

      Use Case #2: Numeric Only Folder Names

      1. Create a DL Folder "2020"
      2. Create a DL Folder "2019"
      3. Create a DL Folder "2021"
      4. Create a DL Folder "2022"
      5. Upload a different number of files to each
      6. Perform a search with Test Test
      7. Assert that the facet terms are ordered by their frequency descending
      8. Use the configuration screen of the widget test with the other ordering options
      9. Assert that the facet terms are ordered according to the configured strategy

      Use Case #3: Folder Names with Mixed Numeric and Text

      1. Use the examples from above to have folders with mixed names and perform searches using different ordering options
      2. Assert that the facet terms are ordered according to the configured strategy

      Attachments

        Issue Links

          Activity

            People

              joshua.chong Joshua Chong
              tibor.lipusz Tibor Lipusz
              Bryan Engler Bryan Engler
              Tibor Lipusz Tibor Lipusz
              Bryan Engler, Gustavo Lima
              Kevin Tan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Development End Date:
                Development Start Date:

                Packages

                  Version Package
                  7.4.13 DXP U44
                  7.4.3.44 CE GA44