title: QueryParsingException failed to find geo_point field
body: <p>I am getting <code>QueryParsingException[[listings] failed to find geo_point field [location.coords]]; }]</code> and can't quite figure out why.</p>
  
  <p>My Query</p>
  
  <pre><code>esClient.search({
      index: 'listings',
      body: {
          query: {
              filtered: {
                  query: {
                      match_all: {}
                  },
                  filter: {
                      geo_distance: {
                          distance: '10km',
                          'location.coords': {
                              lat: parseFloat(query.point.lat),
                              lon: parseFloat(query.point.lon)
                          }
                      }
                  }
              }
          }
      }
  }, function(err, response) {
      if(err) return console.log(err);
      console.log(response);
  });
  </code></pre>
  
  <p>My mapping (as you can see -yes, I did use geo_point type)</p>
  
  <pre><code>    body: {
          properties: {
              location: {
                  type: 'object',
                  properties: {
                      country: {
                          type: 'integer'
                      },
                      address: {
                          type: 'string'
                      },
                      suburb: {
                          type: 'string'
                      },
                      coords: {
                          type: 'geo_point',
                          precision: '3m'
                      }
                  }
              }
          }
      }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>After looking up <a href="http://localhost:9200/listings/_mapping/my-mapping" rel="nofollow noreferrer">http://localhost:9200/listings/_mapping/my-mapping</a>, I noticed the coords field have the lat, lon set to double - could this have something to do with it.</p>
  
  <p><img src="https://i.stack.imgur.com/wYsXT.png" alt="json response"></p>