@@ -85,6 +85,18 @@ public interface IGeoShapeProperty : IDocValuesProperty
85
85
/// </remarks>
86
86
[ JsonProperty ( "ignore_malformed" ) ]
87
87
bool ? IgnoreMalformed { get ; set ; }
88
+
89
+ /// <summary>
90
+ /// If true (default) three dimension points will be accepted (stored in source) but
91
+ /// only latitude and longitude values will be indexed; the third dimension is ignored. If false,
92
+ /// geo-points containing any more than latitude and longitude (two dimensions) values throw
93
+ /// an exception and reject the whole document.
94
+ /// </summary>
95
+ /// <remarks>
96
+ /// Valid for Elasticsearch 6.3.0+
97
+ /// </remarks>
98
+ [ JsonProperty ( "ignore_z_value" ) ]
99
+ bool ? IgnoreZValue { get ; set ; }
88
100
}
89
101
90
102
/// <inheritdoc cref="IGeoShapeProperty" />
@@ -116,6 +128,9 @@ public GeoShapeProperty() : base(FieldType.GeoShape) { }
116
128
117
129
/// <inheritdoc />
118
130
public bool ? IgnoreMalformed { get ; set ; }
131
+
132
+ /// <inheritdoc />
133
+ public bool ? IgnoreZValue { get ; set ; }
119
134
}
120
135
121
136
/// <inheritdoc cref="IGeoShapeProperty"/>
@@ -132,6 +147,7 @@ public class GeoShapePropertyDescriptor<T>
132
147
double ? IGeoShapeProperty . DistanceErrorPercentage { get ; set ; }
133
148
bool ? IGeoShapeProperty . PointsOnly { get ; set ; }
134
149
bool ? IGeoShapeProperty . IgnoreMalformed { get ; set ; }
150
+ bool ? IGeoShapeProperty . IgnoreZValue { get ; set ; }
135
151
136
152
public GeoShapePropertyDescriptor ( ) : base ( FieldType . GeoShape ) { }
137
153
@@ -161,5 +177,9 @@ public GeoShapePropertyDescriptor<T> DistanceErrorPercentage(double? distanceErr
161
177
/// <inheritdoc cref="IGeoShapeProperty.IgnoreMalformed"/>
162
178
public GeoShapePropertyDescriptor < T > IgnoreMalformed ( bool ? ignoreMalformed = true ) =>
163
179
Assign ( a => a . IgnoreMalformed = ignoreMalformed ) ;
180
+
181
+ /// <inheritdoc cref="IGeoShapeProperty.IgnoreZValue"/>
182
+ public GeoShapePropertyDescriptor < T > IgnoreZValue ( bool ? ignoreZValue = true ) =>
183
+ Assign ( a => a . IgnoreZValue = ignoreZValue ) ;
164
184
}
165
185
}
0 commit comments