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

SortClause\ContentId and SortClause\Location\Id use dictionary order in Solr SE

    XMLWordPrintable

Details

    • [3.2] - Sprint 1

    Description

      When using the SortClause\ContentId with Solr search engine, results are sorted using dictonary order.

      Query:

      $query = new LocationQuery;
      $query->sortClauses = [new SortClause\ContentId()];
      

      will return results in order:

      ContentId: 1  eZ Platform
      ContentId: 10 Anonymous User
      ContentId: 11 Guest accounts
      ContentId: 12 Administrator users
      ContentId: 13 Editors
      ContentId: 14 Administrator User
      ContentId: 4  Users
      

      Legacy SE with the same query returns:

      ContentId: 1  eZ Platform
      ContentId: 4  Users
      ContentId: 10 Anonymous User
      ContentId: 11 Guest accounts
      ContentId: 12 Administrator users
      ContentId: 13 Editors
      ContentId: 14 Administrator User
      

       

      Solr returns similar incorrect results when using SortClause\Location\Id.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dominika.kurek-obsolete@ibexa.co Dominika Kurek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: