Thanks Alex, I have “id” as the unique key and so, when the parent and child are getting indexed, shouldn’t the child get an id automatically just like the parent? Is there a configuration setup that would allow for that.
Currently when I am adding the child document, i also have to set the “id” on the child otherwise it is complaining “missing required field: id”. When I do set it, indexing goes thru, but I am unable to find the child by its indexed field as per your suggestion. Thanks -Peri > On Sep 28, 2016, at 1:53 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: > > The default document list returns in the flat form. Try looking up a child > document by ID. > > If that works, look for the child document transformer. > > Regards, > Alex > > On 29 Sep 2016 12:46 AM, "Peri Subrahmanya" <peri.subrahma...@htcinc.com> > wrote: > > Sorry Erick, > > There wasn’t much to provide but here is the code snippet: > > SolrInputDocument sid = new SolrInputDocument(); > sid.addField(“someField”, “someValue”); > > SolrInputDocument childSid = new SolrInputDocument(); > childSid.add(“someField”, “someValue”); > > sid.addChildDocument(childSid); > > sendToSolr - this is just a solr http call with the input document. > > Result: I see the parent doc get indexed. But there is no child document > when i look it up in the SolrAdmin interface. > > Does this help? > > Thanks > -Peri > > >> On Sep 28, 2016, at 1:39 PM, Erick Erickson <erickerick...@gmail.com> > wrote: >> >> There is close to zero information here to help diagnose your issue. >> You might review: >> >> http://wiki.apache.org/solr/UsingMailingLists >> >> Best, >> Erick >> >> On Wed, Sep 28, 2016 at 10:32 AM, Peri Subrahmanya >> <peri.subrahma...@htcinc.com> wrote: >>> Hi All, >>> >>> I have a simple case of indexing a SolrInputDocument with few > ChildSolrInputDocumnets. For some reason, the child documents aren’t > getting indexed. Is there any setting in the schema or config.xml that > needs to be updated? >>> >>> Thanks >>> -Peri Subrahmanya