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

srcField works only when all fields are captured in the /update/json/docs endpoint

    Details

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

      Description

      $ cat ~/Desktop/nested.json
      {
        "id" : "123",
        "description": "Testing /json/docs srcField",
      
        "nested_data" : {
          "nested_inside" : "check check check"
        }
      }
      
      $ curl "http://localhost:8983/solr/test/update/json/docs?srcField=original_json_s&split=/&f=description_s:/descriptio&f=id:/id&commit=true&echo=true" -H "Content-type:application/json" -d @/Users/erikhatcher/Desktop/nested.json
      {"responseHeader":{"status":0,"QTime":1},"docs":[{"id":"123","description_s":"Testing /json/docs srcField","original_json_s":"{  \"id\" : \"123\",  \"description\": \"Testing /json/docs srcField\",  \"nested_data\" : {    \" : \"  }}"}]}
      

        Attachments

          Activity

            People

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: