[
https://issues.apache.org/jira/browse/SOLR-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dawid Weiss updated SOLR-10581:
-------------------------------
Description:
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).
was:
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": "x_1",
"title": "bar1"
}
]
}
},
"commit": {}
}
'
curl -X POST
'http://localhost:8983/solr/techproducts/update/json/docs?commit=true'
--data-binary '
{
"id": "1_1",
"_childDocuments_": [
{
"id": "x_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).
> 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]