title: Combined non-Nested and Nested Query in Elasticsearch
body: <p>I want to use ES for a book search. So I decided to put the author name and title (as a nested document) into the index as follows:</p>
  
  <pre><code>curl -XPUT localhost:9200/library/search_books/1 -d'{
    "author": "one",
    "books": [
      {
        "title": "two",
      },
      {
        "title": "three",
      }
    ]
  }'
  </code></pre>
  
  <p>What I don't get is: 
  How do I need to structure the search query to find only book two when searching for "one two" and find nothing when searching for "two three" and all books when searching for "one"?</p>