[ 
https://issues.apache.org/jira/browse/SOLR-9234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15355171#comment-15355171
 ] 

Steve Rowe commented on SOLR-9234:
----------------------------------

I removed it from the 6.2 section; I'll put it back.

> srcField works only when all fields are captured in the /update/json/docs 
> endpoint
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-9234
>                 URL: https://issues.apache.org/jira/browse/SOLR-9234
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 5.5.2, 6.2
>
>         Attachments: SOLR-9234.patch
>
>
> {code}
> $ 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\" : {    \" 
> : \"  }}"}]}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to