Solr
  1. Solr
  2. SOLR-5777

JsonLoader: field values get out of order when fieldname key is repeated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.1, 4.8, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      while working on a test for SOLR-5183 i discovered a bug in the way field values are ordered when the fieldname key is repeated.

      ie, these two docs should wind up having identical values for the field "f", but currently the order of the values gets swapped in doc #2...

      {"add":[
         {"id":"1", 
          "f":[45,67]
         },
         {"id":"2", 
          "f":45,
          "f":67
         }
      ]}
      
      1. SOLR-5777.patch
        3 kB
        Hoss Man
      2. SOLR-5777.patch
        3 kB
        Hoss Man

        Activity

        Hide
        Hoss Man added a comment -

        patch showing simple fix, and test ... running full regression now.

        Show
        Hoss Man added a comment - patch showing simple fix, and test ... running full regression now.
        Hide
        Hoss Man added a comment -

        beefed up test to also included the extended form with (multiplicitive) field boosts

        Show
        Hoss Man added a comment - beefed up test to also included the extended form with (multiplicitive) field boosts
        Hide
        ASF subversion and git services added a comment -

        Commit 1572262 from hossman@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1572262 ]

        SOLR-5777: Fix ordering of field values in JSON updates where field name key is repeated

        Show
        ASF subversion and git services added a comment - Commit 1572262 from hossman@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1572262 ] SOLR-5777 : Fix ordering of field values in JSON updates where field name key is repeated
        Hide
        ASF subversion and git services added a comment -

        Commit 1572271 from hossman@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1572271 ]

        SOLR-5777: Fix ordering of field values in JSON updates where field name key is repeated (merge r1572262)

        Show
        ASF subversion and git services added a comment - Commit 1572271 from hossman@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1572271 ] SOLR-5777 : Fix ordering of field values in JSON updates where field name key is repeated (merge r1572262)
        Hide
        Steve Rowe added a comment -

        I'll backport this to 4.7.1

        Show
        Steve Rowe added a comment - I'll backport this to 4.7.1
        Hide
        ASF subversion and git services added a comment -

        Commit 1581014 from Steve Rowe in branch 'dev/branches/lucene_solr_4_7'
        [ https://svn.apache.org/r1581014 ]

        SOLR-5777: Fix ordering of field values in JSON updates where field name key is repeated (merged branch_4x r1572271)

        Show
        ASF subversion and git services added a comment - Commit 1581014 from Steve Rowe in branch 'dev/branches/lucene_solr_4_7' [ https://svn.apache.org/r1581014 ] SOLR-5777 : Fix ordering of field values in JSON updates where field name key is repeated (merged branch_4x r1572271)
        Hide
        ASF subversion and git services added a comment -

        Commit 1581015 from Steve Rowe in branch 'dev/trunk'
        [ https://svn.apache.org/r1581015 ]

        SOLR-5777: move CHANGES.txt entry to 4.7.1 section

        Show
        ASF subversion and git services added a comment - Commit 1581015 from Steve Rowe in branch 'dev/trunk' [ https://svn.apache.org/r1581015 ] SOLR-5777 : move CHANGES.txt entry to 4.7.1 section
        Hide
        ASF subversion and git services added a comment -

        Commit 1581016 from Steve Rowe in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1581016 ]

        SOLR-5777: move CHANGES.txt entry to 4.7.1 section (merged trunk r1581015)

        Show
        ASF subversion and git services added a comment - Commit 1581016 from Steve Rowe in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1581016 ] SOLR-5777 : move CHANGES.txt entry to 4.7.1 section (merged trunk r1581015)
        Hide
        Steve Rowe added a comment -

        Bulk close 4.7.1 issues

        Show
        Steve Rowe added a comment - Bulk close 4.7.1 issues

          People

          • Assignee:
            Hoss Man
            Reporter:
            Hoss Man
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development