You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/21 13:21:57 UTC

[jira] [Commented] (SOLR-9234) srcField works only when all fields are captured in the /update/json/docs endpoint

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

ASF subversion and git services commented on SOLR-9234:
-------------------------------------------------------

Commit 060cacfdab25ab3ce345cd79d4d10ded9a40c09a in lucene-solr's branch refs/heads/master from [~noble.paul]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=060cacf ]

SOLR-9234: srcField parameter works only when all fields are captured in the /update/json/docs endpoint


> 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
>         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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org