How can you retrieve a full nested document in Solr?
<p>In my instance of <strong>Solr 4.10.3</strong> I would like to index JSONs with a nested structure. </p>

<p>Example: </p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>{
  "id": "myDoc",
  "title": "myTitle"
  "nestedDoc": {
    "name": "test name"
    "nestedAttribute": {
      "attr1": "attr1Val"
    }
  }
}</code></pre>
</div>
</div>
</p>

<p>I am able to store it correctly through the admin interface: </p>

<p>/solr/#/mySchema/documents</p>

<p>and I'm also able to search and retrieve the document.</p>

<p>The problem I'm facing is that when I get the response document from my Solr search, I cannot see the nested attributes. I only see:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>{
  "id": "myDoc",
  "title": "myTitle"
}</code></pre>
</div>
</div>

Is there a way to include ALL the nested fields in the returned documents?</p>

<p>I tried with : "fl=[child parentFilter=title:myTitle]" but it's not working (ChildDocTransformerFactory from:<a href="https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents" rel="nofollow">https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents</a>). Is that the right way to do it or is there any other way?</p>

<p>I'm using: <strong>Solr 4.10.3!!!!!!</strong></p>