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

Not possible to set a "_score" sort in asc

    Details

      Description

      Impossible to apply '{"sort": [{"_score": {"order": "asc"}}]}' in SearchContext

      Reproduction steps:
      1. Deploy the attached jar file to a DXP 7.1 dxp-18 instance
      2. Add the following widgets to a page:

      • Search bar facet
      • Sorting facet
      • Search Insight facet - this returns the full query string, when executing a search
      • Search Results facet

      3. Try to search a word in Search bar and order by "Relevance [Asc, Desc]" in Sorting facet
      4. No matter whether Asc or Desc is set, the order by score is always desc.
      It always prints "_score":{"order":"desc"}}] in elastic query

      "_score":{"order":"asc"}}] should be printed

      Could not test on master - plugin was incompatible

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Engineering Assignee:
              André Ricardo Barreto de Oliveira
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.X
                  7.2.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master