Hi Mikhail,
The JSON Loader does distinguish a singleton from an array in
JsonLoader#buildDoc() and JsonLoader#mapEntryIsChildDoc(). I've opened an
issue in JIRA with a syntax proposal for XML:
https://issues.apache.org/jira/browse/SOLR-16183
It looks like it would be a small adjustment, but I on
Hello, Thomas.
I think we never think about singleton as a special case, never distinguish
it from array.
On Sun, May 1, 2022 at 5:03 PM Thomas Corthals
wrote:
> When I put only one child document in a field with the same name, it's
> indexed as a "multivalued" child document.
>
>
> 1
>
Hi Mikhail,
Adding a single nested child document isn't mentioned in the docs at all.
The ref guide for 8.11 has more elaborate examples, but doesn't show that
you can do this either. Even when only one child is added, the JSON
examples put it in an array. But it does work when you nest a JSON obj
Hello Thomas.
Isn't it covered here
https://solr.apache.org/guide/8_4/indexing-nested-documents.html#xml-examples
?
сб, 30 апр. 2022 г., 0:18 Thomas Corthals :
> Hi,
>
>
> In a JSON request, you can add nested child documents as a single document
> or an array of documents.
>
>
> JSON data:
>
>
Hi,
In a JSON request, you can add nested child documents as a single document
or an array of documents.
JSON data:
{
"id": "1",
"single_child": {
"id": "2"
},
"children": [{
"id": "3"
},
{
"id": "4"
}]
}
Response:
{
"responseHeader":{
"status":0,
"QTime"