lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-10581) Json update handler doesn't support nested documents in streaming mode
Date Fri, 28 Apr 2017 06:31:04 GMT

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

Dawid Weiss updated SOLR-10581:
-------------------------------
    Affects Version/s: master (7.0)

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


Mime
View raw message