title: How to merge geo distance filter with bool term query
body: <p>How to use Elasticsearch 1.6/1.7 version geo distance filter with bool term query like this. How and here two merge these two queries</p>
  
  <p>Original query:</p>
  
  <pre><code>{
    "query": {
          "bool": {
            "must": [
              {
                "term": {
                  "categories": "tv"
                }
              }
            ],
            "should": [
              {
                "term": {
                  "subCategory": "led"
                }
              }
            ],
            "minimum_should_match": 1,
            "boost": 2
          }
        }
      }
  </code></pre>
  
  <p>I want to search products with above bool query with distance of 10 miles</p>
  
  <pre><code>{
    "filtered": {
      "filter": {
        "geo_distance": {
          "distance": "10km",
          "sellerInfoES.address.sellerLocation": "28.628978,77.21971479999999"
        }
      }
    }
  }
  </code></pre>
  
  <p>Thanks Val! Query is working, I am not getting any query parsing error. However this geo query is not returning and distance range result. I am using Elasticsearch 1.6 and stored sellerLocation as geo_point.Mapping:</p>
  
  <pre><code>{
    "SellerInfoES": {
      "type": "nested",
      "properties": {
        "sellerLocation": {
          "type": "geo_point"
        }
      }
    }
  }
  </code></pre>
  
  <p>This geo_query is not working</p>
  
  <pre><code>{
    "geo_distance": {
      "distance": "100km",
      "sellerLocation": {
        "lat": 28.628978,
        "lon": 77.21971479999999
      }
    }
  }
  </code></pre>