title: Mapping geopoint doesn't work in ElasticSearch
body: <p>I'm using <a href="https://github.com/elastic/elasticsearch-js" rel="nofollow noreferrer">NodeJS ElasticSearch</a> with ElasticSearch 7.0. I create mapping <code>geo_point</code> type on specific field, but it doesn't show geo_point type in <code>_mapping</code>. I tried to search using <code>filter.geo_distance</code>, I got <code>failed to find geo point field</code>. </p>
  
  <p><strong>Node ElasticSearch Mapping</strong></p>
  
  <pre><code>client.indices.putMapping({
    index: 'listing',
    type: 'detail',
    body: {
      properties: {
        'listing_coordinates': {
          "type": "geo_point"
        }
      }
    }
  }, function(err) { console.log(err) })
  </code></pre>
  
  <p><strong>Mapping Error</strong></p>
  
  <blockquote>
    <p>[illegal_argument_exception] Types cannot be provided in put mapping
    requests, unless the include_type_name parameter is set to true.</p>
  </blockquote>
  
  <p><strong>/listing/_mapping</strong></p>
  
  <pre><code>mappings: {
   properties: {
    "listing_coordinates": {
      "properties": {
        "lat": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "lon": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }
      }
    },
   }
  }
  </code></pre>
  
  <p><strong>Node Search</strong></p>
  
  <pre><code>client.search({
      index: 'listing',
      type: 'detail',
      size: 5,
      body: {
        query : {
          "bool": {
            "filter": {
              "geo_distance" : {
                "distance" : "500km",
                "listing_coordinates" : {
                  "lat" : 3.0567521,
                  "lon" : 101.5854671
                }
              }
            }
          }
        }
      }
   }
  </code></pre>
  
  <p><strong>Search error</strong></p>
  
  <blockquote>
    <p>[query_shard_exception] failed to find geo_point field
    [listing_coordinates]</p>
  </blockquote>
  
  <p>I had mapping dates fields on my listing, it worked well.</p>