[ 
https://issues.apache.org/jira/browse/SOLR-10500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Khludnev updated SOLR-10500:
------------------------------------
    Attachment: SOLR-10500.patch

[^SOLR-10500.patch] also asserts nested values and encompasses 
[~alexey_sup...@epam.com]'s fix.

> custom json loading is wrong at least with two parents 
> -------------------------------------------------------
>
>                 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-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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to