Solr
  1. Solr
  2. SOLR-7209

/update/json/docs carry forward fields from previous records

    Details

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

      Description

      example

      curl -H 'Content-type:application/json' 'http://localhost:8983/solr/foo/update/json/docs?split=/exams&echo=true&f=/**&indent=true&omitHeader=true' -d '
      {
      'first': 'John',
      'exams': [
      {'subject': 'Maths', 'test'   : 'term1', 'marks':90},
      {'subject': 'Biology', 'test'   : 'term1', 'marks':86}
      ]
      }
      {
      'first': 'Bob',
      'exams': [
      {'subject': 'Maths', 'test': 'term1', 'marks': 95
      }
      ,
      {
      'subject': 'Biology', 'test'   : 'term1', 'marks': 92}
      ]
      }'
      

      produces the following set of docs

      {
            "first":"John",
            "subject":"Maths",
            "test":"term1",
            "marks":90},
          {
            "first":"John",
            "subject":"Biology",
            "test":"term1",
            "marks":86},
          {
            "first":["John",
              "Bob"],
            "subject":"Maths",
            "test":"term1",
            "marks":95},
          {
            "first":["John",
              "Bob"],
            "subject":"Biology",
            "test":"term1",
            "marks":92}
      

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1665341 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1665341 ]

        SOLR-7209: /update/json/docs carry forward fields from previous records

        Show
        ASF subversion and git services added a comment - Commit 1665341 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1665341 ] SOLR-7209 : /update/json/docs carry forward fields from previous records
        Hide
        ASF subversion and git services added a comment -

        Commit 1665342 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1665342 ]

        SOLR-7209: cleaned formatting

        Show
        ASF subversion and git services added a comment - Commit 1665342 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1665342 ] SOLR-7209 : cleaned formatting
        Hide
        ASF subversion and git services added a comment -

        Commit 1665347 from Noble Paul in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1665347 ]

        SOLR-7209: /update/json/docs carry forward fields from previous records

        Show
        ASF subversion and git services added a comment - Commit 1665347 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1665347 ] SOLR-7209 : /update/json/docs carry forward fields from previous records
        Hide
        Timothy Potter added a comment -

        Bulk close after 5.1 release

        Show
        Timothy Potter added a comment - Bulk close after 5.1 release

          People

          • Assignee:
            Noble Paul
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development