Deeply nested JSON documents in Apache Solr
<p>I have a deeply nested document(pseudo structure as shown below):</p>

<pre><code>[{
    "id": "1",
    "company_id": "1",
    "company_name": "company_1",
    "departments":[{
                 "dep1" : [{
                           "id" : 40,
                           "name" : xyz
                           },
                           {
                           "id" : 41,
                           "name" : xyr
                           }],
                "dep2": [{
                }]
            }]
    "employeePrograms" :[{
    }]
}]
</code></pre>

<p>How can I index these type of documents in Apache Solr?
Documentation gives the idea of immediate child documents alone.</p>