Noble Paul created SOLR-7209: -------------------------------- Summary: /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=$FQN:/**&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} { "docs":[{ "first":"John", "exams.subject":"Maths", "exams.test":"term1", "exams.marks":90}, { "first":"John", "exams.subject":"Biology", "exams.test":"term1", "exams.marks":86}, { "first":["John", "Bob"], "exams.subject":"Maths", "exams.test":"term1", "exams.marks":95}, { "first":["John", "Bob"], "exams.subject":"Biology", "exams.test":"term1", "exams.marks":92}]} {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org