title: ElasticSearch filtering with geo distance
body: <p>I'm attempting to filter data with both geo distance and fields like 'has_cctv' or 'has_instant_bookings'.</p>
  
  <pre><code>{
    "query" : {
      "filtered" : {
        "filter" : {
          "geo_distance": {
            "distance": 10000,
            "lat_lng": {
              "lat": "51.5073509",
              "lon": "-0.1277583"
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>I've tried many combinations of filtering using terms but can't seem to get past errors. For example:</p>
  
  <pre><code>{
    "query" : {
      "filtered" : {
        "filter" : {
          "terms": [
            {"term": {"has_cctv": 1}}
          ],
          "geo_distance": {
            "distance": 10000,
            "lat_lng": {
              "lat": "51.5073509",
              "lon": "-0.1277583"
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>This gives me '[terms] filter does not support [has_cctv] within lookup element'. Could this be a problem with my query, or a problem with the way the data is stored?</p>