Need example of indexing GeoJson string with NEST


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 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!