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

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              russell.bohl Russell Bohl
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Kevin Tan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                40 weeks, 3 days ago
                Development End Date:
                Development Start Date:

                  Packages

                  Version Package
                  7.2.10 DXP FP10
                  7.2.10.4 DXP SP4
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.3.X
                  Master