title: Elasticsearch term query does not give any results
body: <p>I am very new to Elasticsearch and I have to perform the following query:</p>
  
  <pre><code>GET book-lists/book-list/_search
  {  
     "query":{  
        "filtered":{  
           "filter":{  
              "bool":{  
                 "must":[  
                    {  
                       "term":{  
                          "title":"Sociology"
                       }
                    },
                    {  
                       "term":{  
                          "idOwner":"17xxxxxxxxxxxx45"
                       }
                    }
                 ]
              }
           }
        }
     }
  }
  </code></pre>
  
  <p>According to the Elasticsearch API, it is equivalent to pseudo-SQL:</p>
  
  <pre><code>SELECT document
  FROM   book-lists
  WHERE  title = "Sociology"
         AND idOwner = 17xxxxxxxxxxxx45
  </code></pre>
  
  <p>The problem is that my document looks like this:</p>
  
  <pre><code>{  
     "_index":"book-lists",
     "_type":"book-list",
     "_id":"AVBRSvHIXb7carZwcePS",
     "_version":1,
     "_score":1,
     "_source":{  
        "title":"Sociology",
        "books":[  
           {  
              "title":"The Tipping Point: How Little Things Can Make a Big Difference",
              "isRead":true,
              "summary":"lorem ipsum",
              "rating":3.5
           }
        ],
        "numberViews":0,
        "idOwner":"17xxxxxxxxxxxx45"
     }
  }
  </code></pre>
  
  <p>And the Elasticsearch query above doesn't return anything.</p>
  
  <p>Whereas, this query returns the document above:</p>
  
  <pre><code>GET book-lists/book-list/_search
  {  
     "query":{  
        "filtered":{  
           "filter":{  
              "bool":{  
                 "must":[  
                    {  
                       "term":{  
                          "numberViews":"0"
                       }
                    },
                    {  
                       "term":{  
                          "idOwner":"17xxxxxxxxxxxx45"
                       }
                    }
                 ]
              }
           }
        }
     }
  }
  </code></pre>
  
  <p>This makes me suspect that the fact that <strong>"title" is the same name</strong> for the two fields is for something.</p>
  
  <p>Is there a way to fix this without having to rename any of the fields. Or am I missing it somewhere else?</p>
  
  <p>Thanks for anyone trying to help.</p>