[
https://issues.apache.org/jira/browse/SOLR-16183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694003#comment-17694003
]
Thomas Corthals commented on SOLR-16183:
----------------------------------------
Hi, [~vinayakhegde]
They're both [Nested
Documents|https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-nested-documents.html].
If they don't have a {{{}name{}}}, they are "anonymous".
The {{subDocs}} variable name is just a name. It is passed to a
{{SolrInputDocument}} method as a parameter that's named {{children}} in that
method's signature.
{code:java}
public void addChildDocuments(Collection<SolrInputDocument> children) {
for (SolrInputDocument child : children) {
addChildDocument(child);
}
}{code}
> XML Loader: support indexing single nested child document
> ---------------------------------------------------------
>
> Key: SOLR-16183
> URL: https://issues.apache.org/jira/browse/SOLR-16183
> Project: Solr
> Issue Type: Improvement
> Reporter: Thomas Corthals
> Priority: Major
> Labels: newbie
>
> The XML Loader always treats labelled nested children as a "multi-valued
> pseudo-field", whereas the JSON Loader can also index a single child document
> as well as an array of 1..n child documents.
> The XML Loader should have a corresponding syntax for a single labelled
> nested child.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]