title: inner object search elasticsearch v2.3
body: <p>I have documents like below in elasticsearch:</p>
  
  <pre><code>{ 
    "region": "US",
    "manager": { 
      "age":     30,
      "name": { 
        "first": "John",
        "last":  "Smith"
      }
    }
  }
  </code></pre>
  
  <p>As per <a href="https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-object-type.html" rel="nofollow noreferrer">this page in documentation</a>, inner objects can be search without providing full path as well. Example, I can say show me docs with <code>first = John</code>.</p>
  
  <p>This was working for me in verson 1.5.2 <em>out-of-the-box</em> but I recently migrated to version 2.3.2 of elastic and this <em>non-fully-qualified-name-based-search</em> has stopped working. Now I have to explicitly say <code>name.first = John</code> which I don't want to do because of dynamic nature of keys in docs.</p>
  
  <p>I have tried explicitly saying that name is an object type while declaring mappings. And also by including name in all using <code>include_in_all</code> option as mentioned <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/object.html" rel="nofollow noreferrer">here</a> and <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/include-in-all.html" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Does anyone know how to get it working in version 2.3.2 of elasticsearch. How do I search inner fields in elastic by just saying <code>first=John</code> and not <code>name.first=John</code>.</p>