title: Why elasticsearch is not strongly typed?
body: <p><a href="https://i.stack.imgur.com/23wRX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23wRX.png" alt="enter image description here"></a>Mapping.json :</p>
  
  <pre><code>{ "XYZ": { "properties" :{
       "p": { "type": "string"  }
       "q": { "type": "boolean" }
       "r": { "type":"nested", "properties": { "s": { "type": "integer"}, "t": { "type": "string" } } }
  
  }
  }
  </code></pre>
  
  <p>Pushing <a href="http://localhost:9200/myindex/XYZ/1/_create" rel="nofollow noreferrer">http://localhost:9200/myindex/XYZ/1/_create</a></p>
  
  <p><a href="https://i.stack.imgur.com/a4Sl0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a4Sl0.png" alt="enter image description here"></a>
  data.json </p>
  
  <pre><code>{
        "p":"p1","q":"true", "r": [ { "t":"sIntegerMissingBefore"}]
  } 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pPMUn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pPMUn.png" alt="enter image description here"></a>
  Even some of the fields are missing, hierarchical change on the data side, elastic-search accepts loads the data without throwing data is of wrong type</p>
  
  <p>When we perform search nested-queries, it shows an empty hits object, even after having the nested-data, Why elasticsearch is not so typed ? </p>