Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9477

Wrong sort order if two sorted metadata values contains the same first 50 characters

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.9, 4.2.0
    • 4.2.0
    • Plugin : Search
    • None
    • 4.2 M8

      For instance, if one content has the title "Diplôme d'Etat de professeur de danse option danse contemporaine" and one "Diplôme d'Etat de professeur de danse option danse classique", it is possible that the first one comes in before the second one (if it was indexed before).

      Indeed, title_s_sort is indexed with the value Diplôme d'Etat de professeur de danse option danse because in index time we truncates the first 50 characters.

          [CMS-9477] Wrong sort order if two sorted metadata values contains the same first 50 characters

          1. I did not remove the method org.ametys.cms.content.indexing.solr.SolrFieldHelper.getSortValue(String) in case we want later to add some extra logic.
          2. I did not remove old code and just comment it just in case the fix was not a good idea and we realize we still need to truncate (but not on only 50 first chars)

          Simon Prieul (Inactive) added a comment - I did not remove the method org.ametys.cms.content.indexing.solr.SolrFieldHelper.getSortValue(String) in case we want later to add some extra logic. I did not remove old code and just comment it just in case the fix was not a good idea and we realize we still need to truncate (but not on only 50 first chars)

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: