File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Nest/Domain/Mapping/Types
Tests/Nest.Tests.Unit/Core/Map/Properties Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ public class GeoShapeMapping : IElasticType
1010 {
1111 public PropertyNameMarker Name { get ; set ; }
1212
13- private TypeNameMarker __type ;
1413 [ JsonProperty ( "type" ) ]
15- public virtual TypeNameMarker Type { get { return ( TypeNameMarker ) ( __type ?? "point" ) ; } set { __type = value ; } }
14+ public virtual TypeNameMarker Type { get { return new TypeNameMarker { Name = "geo_shape" } ; } }
1615
1716 [ JsonProperty ( "similarity" ) ]
1817 public string Similarity { get ; set ; }
Original file line number Diff line number Diff line change 22 "elasticsearchprojects" : {
33 "properties" : {
44 "myGeoShape" : {
5- "type" : " point " ,
5+ "type" : " geo_shape " ,
66 "tree" : " geohash" ,
77 "tree_levels" : 2 ,
88 "distance_error_pct" : 0.025
You can’t perform that action at this time.
0 commit comments