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

Alexandre Rafalovitch commented on SOLR-10581:
----------------------------------------------

I wonder if that's a side-effect of SOLR-10424 that is swallowing all non-id 
fields? Test with more fields in the parent document and/or check for 
mapUniqueKeyOnly=true
 in config directory (could be in one of several config files).

> Json update handler doesn't support nested documents in streaming mode
> ----------------------------------------------------------------------
>
>                 Key: SOLR-10581
>                 URL: https://issues.apache.org/jira/browse/SOLR-10581
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.2.1
>            Reporter: Dawid Weiss
>            Priority: Minor
>
> Posting nested documents to {{/update/json/docs}} doesn't seem to work for me 
> (but command-based json works just fine). Example:
> {code}
> #!/bin/bash
> curl -X POST 
> 'http://localhost:8983/solr/techproducts/update/json?commit=true' 
> --data-binary '
> {
>   "delete": { "query": "*:*" },
>   "add": {
>     "doc": {
>       "id": "1",
>       "_childDocuments_": [
>         {
>           "id": "1_1",
>           "title": "bar1"
>         }
>       ]
>     }
>   },
>   "commit": {}
> }
> ' 
> curl -X POST 
> 'http://localhost:8983/solr/techproducts/update/json/docs?commit=true' 
> --data-binary '
>   {
>       "id": "2",
>       "_childDocuments_": [
>         {
>           "id": "2_1",
>           "title": "bar2"
>         }
>       ]
>   }
> ' 
> {code}
> The nested document with {{bar2}} doesn't make it to the index. On master 
> everything completes successfully. On an older version (6.2.1), the second 
> post results in an exception ("unknown field _childDocuments_.id).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to