title: How do I use Elasticsearch's geo_point and geo_shape types at the same time?
body: <p>Here is our <strong>document</strong>:</p>
  
  <pre><code>{
      "geometry" : {
          "type" : "Point",
          "coordinates" : [ -87.662682, 41.843014 ]
      }
  }
  </code></pre>
  
  <p>We'd like to do a <code>geo_shape</code> search with a <code>_geo_distance</code> sort, both against the same <code>geometry</code> field. The former requires<code>geo_shape</code> types while the latter requires <code>geo_point</code>.</p>
  
  <p>These two <strong>indexes</strong> succeed individually, but <em>not together</em>:</p>
  
  <pre><code>"geometry": {
      "type": "geo_shape"
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>"geometry": {
      "properties": {
          "coordinates": {
              "type": "geo_point"
          }
      }
  },
  </code></pre>
  
  <p>So far we've tried these and <strong>failed</strong>:</p>
  
  <pre><code>"geometry": {
      "type": "geo_shape"
  },
  "geometry.coordinates": {
      "type": "geo_point"
  },
  </code></pre>
  
  <p>also</p>
  
  <pre><code>"geometry": {
      "copy_to": "geometryShape",
      "type": "geo_shape"
  },
  "geometryShape": {
      "properties": {
          "coordinates": {
              "type": "geo_point"
          }
      }
  }
  </code></pre>
  
  <p>also </p>
  
  <pre><code>"geometry": {
      "copy_to": "geometryShape",
      "properties": {
          "coordinates": {
              "type": "geo_point"
          }
      }
  },
  "geometryShape": {
      "type": "geo_shape"
  }
  </code></pre>
  
  <p>Any ideas on how to create this index properly?</p>