[
https://issues.apache.org/jira/browse/SOLR-10030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132115#comment-18132115
]
Nick Shanin commented on SOLR-10030:
------------------------------------
I looked at this against current main. Child documents come back from the
realtime get handler only when fl includes [child], so getById with no field
list returns none by design. If you see a real defect on a supported release,
reply and I will reopen it. Otherwise I plan to close it as not a bug.
🤖 AI-generated 🤖
> SolrClient.getById() method in Solrj doesn't retrieve child documents
> ---------------------------------------------------------------------
>
> Key: SOLR-10030
> URL: https://issues.apache.org/jira/browse/SOLR-10030
> Project: Solr
> Issue Type: Bug
> Components: clients - java, SolrJ
> Affects Versions: 6.2.1
> Reporter: Masoud Kiaeeha
> Priority: Major
>
> I have this code in my program which uses solrj:
> SolrDocument document = solrClient.getById(idString);
> List<SolrDocument> children = document.getChildDocuments();
> which returns null for document.getChildDocuments() although the document I
> am referring to has children. I can easily confirm that this document has
> children by running the following query:
> q={!child of="path:1.document"}path:1.document
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]