title: How to index in Elastic Search a typed object with a GeoShape string GeoJson polygon?
body: <p>I have a typed class that contains a GeoJson string variable that represents a polygon.
  How can I index it in Elastic Search using NEST?
  Marking the field with:</p>
  
  <pre><code>[ElasticProperty(Type = FieldType.GeoShape)]
  public string Polygon { get; set; }
  </code></pre>
  
  <p>and having it in the <code>CreateIndex</code> as </p>
  
  <pre><code> .GeoShape(s =&gt; s
      .Name(m =&gt; m.Polygon)
      .Tree(GeoTree.Geohash)
      .TreeLevels(2)
      .DistanceErrorPercentage(0.025))
  </code></pre>
  
  <p>Gives this error:</p>
  
  <blockquote>
    <p>failed to parse [polygon]]; nested: ElasticsearchParseException[Shape must be an object consisting of type and coordinates"</p>
  </blockquote>
  
  <p>Since I have the GeJSon as the input and the GeoShape has the coordinates as Geo JSON, how can I map this data? I could deserialize the input and populate the ES structure, but it seems like a too complicated, error prone approach.</p>
  
  <p>Thank you,</p>
  
  <p>Monica</p>