# Need example of indexing GeoJson string with NEST

**URL:** https://discuss.elastic.co/t/need-example-of-indexing-geojson-string-with-nest/286077
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [October 6, 2021, 10:50pm UTC](https://discuss.elastic.co/t/need-example-of-indexing-geojson-string-with-nest/286077 "2021-10-06T22:50:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chm/32/78258_2.png) [@chm](https://discuss.elastic.co/u/chm)
#### Post date: [October 6, 2021, 10:50pm UTC](https://discuss.elastic.co/t/need-example-of-indexing-geojson-string-with-nest/286077/1 "2021-10-06T22:50:42Z")

</div>

Hi,

Are there any current examples or documentation about how to index a GeoJson format string into a document field with the NEST library? I'd also be keen to know whether using GeoJson with Elasticsearch is supported/recommended.

I'm specifically interested in points and polygons but can't get either to work, and all the forum posts I can find about this seem out of date. e.g. the examples [here](https://github.com/elastic/elasticsearch-net/issues/2444) linked in a couple different places reference SetJsonSerializerSettingsModifier on ConnectionSettings which doesn't exist in Nest anymore.

At the moment I'm stuck trying to deserialize a GeoJson string into a GeoPolygonShape and getting serializer errors.

Thanks for your help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 3, 2021, 10:51pm UTC](https://discuss.elastic.co/t/need-example-of-indexing-geojson-string-with-nest/286077/2 "2021-11-03T22:51:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
