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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.5.2, 6.2
    • None
    • 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

        1. SOLR-9234.patch
          7 kB
          Noble Paul

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: