Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5777

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
         }
      ]}
      

        Attachments

        1. SOLR-5777.patch
          3 kB
          Hoss Man
        2. SOLR-5777.patch
          3 kB
          Hoss Man

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: