Description
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:
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 } ] } ] '
produces docs with accumulating children across parents
{ "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 }]}
Attachments
Attachments
Issue Links
- relates to
-
SOLR-7123 /update/json/docs should have nested document support
- Closed