title: Whats wrong with this geo_shape elasticsearch query?
body: <p>I am trying to do a geo_shape query for document with a location (See example document below) and I am getting NullPointerException when trying to execute it with ElasticSearch via the Chrome Addon "Sense". The exact results are at the bottom of this question...</p>
  
  <p>Any help on getting the right geo_shape query to work would really be appreciated. </p>
  
  <p><strong>Query throwing exception</strong></p>
  
  <pre><code>{
     "query": {         
       "geo_shape": {
          "location": {
             "shape": {
                "type": "polygon", 
                "coordinates": [[-87.6363976, 41.8772528], [-87.6363976, 41.8902152],[-87.62131840000001, 41.8902152], [-87.62131840000001, 41.8772528], [-87.6363976, 41.8772528]]
             }
          }
  
        }
  
      }
   }
  </code></pre>
  
  <p><em><strong>Example Document</em></strong></p>
  
  <pre><code>{
      "id": 1483,
      "name": "Independance Day Movie day",
      "location": [
                41.9527,
                -87.725
             ]
  }
  </code></pre>
  
  <p><em><strong>Exact Results from Sense</em></strong></p>
  
  <pre><code>{
  "error": "SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures {[qFv-xNqxSI2oATfvmnVo8w][dev][0]: SearchParseException[[dev][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\n   \"query\": { \n       \"geo_shape\": {\n          \"location\": {\n             \"shape\": {\n                \"type\": \"polygon\", \n                \"coordinates\": [[-87.6363976, 41.8772528], [-87.6363976, 41.8902152],[-87.62131840000001, 41.8902152], [-87.62131840000001, 41.8772528], [-87.6363976, 41.8772528]]\n             }\n          }\n          \n       \n       }\n        \n   \n   }\n}\n]]]; nested: NullPointerException; }]",
  "status": 400
  }
  </code></pre>