File tree 2 files changed +2
-3
lines changed
Nest/Domain/Mapping/Types
Tests/Nest.Tests.Unit/Core/Map/Properties
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
10
10
{
11
11
public PropertyNameMarker Name { get ; set ; }
12
12
13
- private TypeNameMarker __type ;
14
13
[ 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" } ; } }
16
15
17
16
[ JsonProperty ( "similarity" ) ]
18
17
public string Similarity { get ; set ; }
Original file line number Diff line number Diff line change 2
2
"elasticsearchprojects" : {
3
3
"properties" : {
4
4
"myGeoShape" : {
5
- "type" : " point " ,
5
+ "type" : " geo_shape " ,
6
6
"tree" : " geohash" ,
7
7
"tree_levels" : 2 ,
8
8
"distance_error_pct" : 0.025
You can’t perform that action at this time.
0 commit comments