Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10030

SolrClient.getById() method in Solrj doesn't retrieve child documents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.2.1
    • None
    • clients - java, SolrJ
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            maxxkia Masoud Kiaeeha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: