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

The Sort Widget's Top Option Isn't Applied on Page Load



      General description of expected behavior: When I search for a term in the page top search bar, I am redirected to the search page and my results are shown. Importantly, I expect that if I have added a Sort Widget to the page, the top sort option is applied on page load.
      General description of observed behavior: To apply a Sort other than the default (relevance) I must select it from the Sort Widget.

      Steps to Reproduce:

      1. Add a Sort widget to the search page and configure it so the Created option (field: createDate- is the first choice.
      2. Add three pieces of content, a minute apart. For example, blog posts like this:
        • Title: First/Second/Third Blog Post
        • Content: A blog post for sort testing
      3. Search for second blog.

      Expected: Results are returned in order of relevance and "Relevance" is displayed as the selected sort. (If another configuration option's value is blank, that label will be displayed instead. If no configuration options are blank, a disabled "Relevance" option will be displayed).
      Actual: Results are returned in order of relevance (second blog post is first in the list), but "Created Date" is displayed as the selected sort.

      This may have simply been the way it was designed, for users to change the sort order after seeing the relevance-sorted results. But, it's still a perceived bug, because you'll see the Created option appearing in the Sort widget, while results are actually being returned by relevance.


          Issue Links



              linda.sui Linda Sui
              russell.bohl Russell Bohl
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Kevin Tan
              0 Vote for this issue
              5 Start watching this issue


                Days since last comment:
                1 year, 34 weeks, 3 days ago
                Development End Date:
                Development Start Date:


                  Version Package
                  7.2.10 DXP FP10
         DXP SP4
                  7.3.10 DXP FP1
         DXP SP1
                  7.3.6 CE GA7
                  7.4.13 DXP GA1