title: Geo Distance Filter with ElasticSearch always returns 0 results
body: <p>I am using the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-filter.html" rel="nofollow">Geo Distance Filter</a> with <a href="http://www.elasticsearch.org" rel="nofollow">ElasticSearch</a> and no matter what distance I search for, elasticsearch 0.90.11 returns zero results.</p>
  
  <p>Here's what I did: First, delete/create a new index with the geo mapping:</p>
  
  <pre><code>curl -XDELETE 'http://localhost:9200/photos'
  
  curl -XPOST 'http://localhost:9200/photos' -d '
  {
    "mappings": {
      "pin" : {
          "properties" : {
              "location" : {
                  "type" : "geo_point"
              }
          }
      }
    }
  }
  '
  </code></pre>
  
  <p>Then, add a document:</p>
  
  <pre><code>curl -XPOST 'http://localhost:9200/photos/photo?pretty=1' -d '
  {
     "pin" : {
        "location" : {
           "lat" : 46.8,
           "lon" : -71.2
        }
     },
     "file" : "IMG_2115.JPG"
  }
  '
  </code></pre>
  
  <p>Then search:</p>
  
  <pre><code>curl -XGET 'http://localhost:9200/photos/_search?pretty=1&amp;size=20' -d '
  {
     "query" : {
        "match_all" : {}
     },
     "filter" : {
        "geo_distance" : {
           "distance" : "10km",
           "pin.location" : {
              "lat" : "46.8",
              "lon" : "-71.2"
           }
        }
     }
  }
  '
  </code></pre>
  
  <p>But the search yields zero hits:</p>
  
  <pre><code>{
    "took" : 2,
    "timed_out" : false,
    "_shards" : {
      "total" : 5,
      "successful" : 5,
      "failed" : 0
    },
    "hits" : {
      "total" : 0,
      "max_score" : null,
      "hits" : [ ]
    }
  }
  </code></pre>
  
  <p>Anyone know why it didn't find the document within the radius? As an interesting side note, the "filtered" syntax having both "query" and "filter" as subfields as described in the document referenced above seems to no longer work at all, seems like now "query" and "filter" need to be at the top level of the json query.</p>
  
  <p>Any help appreciated ...</p>