title: How to store data in elasticsearch _source but not index it?
body: <p>I am searching only by couple of fields but I want to be able to store the whole document in ES in order not to additional DB (MySQL) queries.</p>
  
  <p>I tried adding <code>index: no</code>, <code>store: no</code> to whole objects/properties in the mapping but I'm still not sure if the fields are being indexed and add unnecessary overhead.</p>
  
  <p>Let's say I've got books and each has an author. I want to search only by book title, but I want to be able to retrieve the whole document.</p>
  
  <p>Is this okay:</p>
  
  <pre><code>mappings:
  properties:
      title:
          type: string
          index: analyzed
      author:
          type: object
          index: no
          store: no
          properties:
              first_name:
                  type: string
              last_name:
                  type: string
  </code></pre>
  
  <p>Or should I rather do:</p>
  
  <pre><code>mappings:
  properties:
      title:
          type: string
          index: analyzed
      author:
          type: object
          properties:
              first_name:
                  index: no
                  store: no
                  type: string
              last_name:
                  index: no
                  store: no
                  type: string
  </code></pre>
  
  <p>Or maybe I am doing it completely wrong?
  And what about <code>nested</code> properties that should not be indexed?</p>