Solr 6.2 represent parent child fields
<p>I have a json structure like this:</p>

<pre><code>{
    "foo": "123",
    "bar" : {
         "baz" : ["1","2","3"],
         "faz" : "hello"
     }
}
</code></pre>

<p>Which I am trying to represent in <code>Solr 6.2</code> and this schema fails to give me the expected result:</p>

<pre><code>&lt;field name="_root_" type="string" docValues="false" indexed="true" stored="false" /&gt;
&lt;field name="foo" type="string" indexed="true" stored="true"/&gt;
&lt;field name="bar" type="string" indexed="true" stored="true"/&gt;
&lt;field name="bar.baz" type="strings" indexed="true" stored="true"/&gt;
&lt;field name="bar.faz" type="string" indexed="true" stored="true"/&gt;
</code></pre>

<p>The resulting schema is this:</p>

<pre><code>{
    "foo": "123",
    "bar" : "",
    "bar.baz" : ["1","2","3"],
    "bar.faz" : "hello"
}
</code></pre>