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

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

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

> /update/json/docs carry forward fields from previous records
> ------------------------------------------------------------
>
>                 Key: SOLR-7209
>                 URL: https://issues.apache.org/jira/browse/SOLR-7209
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>
> example
> {noformat}
> 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}
> ]
> }'
> {noformat}
> produces the following set of docs
> {noformat}
> {
>       "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}
> {noformat}



--
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