Hello Everyone, We use SolrJ with POJOs to index documents into solr. If a POJO has a field annotated with @child then SolrJ automatically adds those objects as children of the POJO. This works fine and indexing is done properly.
However, when I retrieve the same document through same POJO using "getBeans" method of DocumentObjectBinder class, the field annotated with @child annotation is always null i.e. the children are not populated in POJO. What is the best way to get children in the same POJO along with other fields. I read about child transformers but I am not sure if it is the prescribed and recommended way to get children with parent. What is the best practice to achieve this? Thanks! Pratik