lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-10500) custom json loading is wrong when there are multiple toplevel docs w/ child docs
Date Thu, 27 Apr 2017 10:02:04 GMT

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

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

Commit 61d02a47e205bbf6c18058853b93466e6cfbd51b in lucene-solr's branch refs/heads/master
from [~mkhludnev]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=61d02a4 ]

SOLR-10500: fix many parents with nested children per /update/json/docs request


> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message