[
https://issues.apache.org/jira/browse/SOLR-10500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15984534#comment-15984534
]
Noble Paul commented on SOLR-10500:
-----------------------------------
Go ahead and commit it
> custom json loading is wrong when there are multiple toplevel docs w/ child
> docs
> --------------------------------------------------------------------------------
>
> Key: SOLR-10500
> URL: https://issues.apache.org/jira/browse/SOLR-10500
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: update
> Affects Versions: 6.5
> Reporter: Mikhail Khludnev
> Attachments: 0001-SOLR-10500-fixed-json-hierarchy-read.patch,
> SOLR-10500.patch, SOLR-10500.patch, SOLR-10500-test.patch
>
>
> Sending two parent docs with nested children in custom JSON leads to
> hijacking neighbor's children. As a workaround, every parent can be sent
> separately.
> Let me better describe the problem:
> {code}
> curl
> 'http://localhost:8983/solr/my_collection/update/json/docs?split=/|/orgs'\
> -H 'Content-type:application/json' -d '[{
> "name": "Joe Smith", "phone": 876876687, "orgs": [
> { "name": "Microsoft", "city": "Seattle", "zip": 98052 },
> { "name": "Apple", "city": "Cupertino", "zip": 95014 }
> ]
> },
> {
> "name": "Frank Miller", "phone": 1234556, "orgs": [
> { "name": "Oracle", "city": "Redwood", "zip": 98052 },
> { "name": "HTC", "city": "San Francisco", "zip": 95014 }
> ]
> }
> ] '
> {code}
> produces docs with accumulating children across parents
> {code}
> {
> "name":"Joe Smith", "phone":876876687,
> "_childDocuments_":[
> { "name":"Microsoft", "city":"Seattle","zip":98052},
> {"name":"Apple","city":"Cupertino","zip":95014}]},
> {
> "name":"Frank Miller", "phone":1234556,
> "_childDocuments_":[
> { "name":"Microsoft", "city":"Seattle","zip":98052},
> {"name":"Apple","city":"Cupertino","zip":95014},
> { "name": "Oracle", "city": "Redwood", "zip": 98052 },
> { "name": "HTC", "city": "San Francisco", "zip": 95014 }]}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]