Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26325

Platform UI Search is not sorting results by relevancy (on solr)

    Details

      Description

      Remaining issue after EZP-26141 (Solr) and EZP-26326 (REST) was fixed is to update Platform UI to use Query when doing FullText search, so scripting and thus proper relevancy sorting is enabled when using Solr.


      Original issue description:

      Search relevancy does not work. It appears to conduct some form of 'OR' search not an 'AND' search. If "red apple" is search term, the 1st results should return red AND apple content.

      When using API and FullText Criterion on query we expect default sorting on Solr to be able to sort by relevancy (score).

      Specifically searching for "Red Apple" should return items in following order:

      • Exact hits on "Red Apple"
      • Hits that contains both words
      • Hits that contains both works with fuzziness
      • Hits that contain one of them
      • Hits that contain one of them with fuzziness

        Issue Links

          Activity

          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          PR approved by QA

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - PR approved by QA
          Show
          Stéphane Diot added a comment - - edited merged in 1.6: https://github.com/ezsystems/PlatformUIBundle/commit/c4877443c51fd736d248fafa2c9a9851492f72a7
          Hide
          Yannick Roger (Inactive) added a comment -

          For users wanting to use this fix on a 1.6.2.1:

          • Apply the fix for EZP-26570
          • Apply the attached patch: ezp-26325-for-v1.6.2.1+ezp-25570.patch
          • Run composer update
          Show
          Yannick Roger (Inactive) added a comment - For users wanting to use this fix on a 1.6.2.1: Apply the fix for EZP-26570 Apply the attached patch: ezp-26325-for-v1.6.2.1+ezp-25570.patch Run composer update
          Hide
          Paulo Nunes (Inactive) added a comment -

          Thanks Yannick ROGER. Worked like a charm.

          Show
          Paulo Nunes (Inactive) added a comment - Thanks Yannick ROGER . Worked like a charm.
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved
          Tested in master and in 1.6.2 (with platform-ui-bundle 1.6.2.1)

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested in master and in 1.6.2 (with platform-ui-bundle 1.6.2.1)

            People

            • Assignee:
              Unassigned
              Reporter:
              Łukasz Serwatka
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: