1
+ using System ;
1
2
using System . Diagnostics ;
2
3
using System . Runtime . Serialization ;
3
4
using Elasticsearch . Net ;
@@ -24,6 +25,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
24
25
/// noting that large shapes will have greater false positives.
25
26
/// </remarks>
26
27
[ DataMember ( Name = "distance_error_pct" ) ]
28
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
27
29
double ? DistanceErrorPercentage { get ; set ; }
28
30
29
31
/// <summary>
@@ -64,6 +66,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
64
66
/// so that geo_shape queries are optimal on a point only field.
65
67
/// </summary>
66
68
[ DataMember ( Name = "points_only" ) ]
69
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
67
70
bool ? PointsOnly { get ; set ; }
68
71
69
72
/// <summary>
@@ -72,6 +75,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
72
75
/// the best tree_levels value to honor this precision.
73
76
/// </summary>
74
77
[ DataMember ( Name = "precision" ) ]
78
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
75
79
Distance Precision { get ; set ; }
76
80
77
81
/// <summary>
@@ -87,6 +91,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
87
91
/// Defaults to <see cref="GeoTree.Geohash" />
88
92
/// </summary>
89
93
[ DataMember ( Name = "tree" ) ]
94
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
90
95
GeoTree ? Tree { get ; set ; }
91
96
92
97
/// <summary>
@@ -97,6 +102,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
97
102
/// <see cref="Precision" /> parameter instead.
98
103
/// </summary>
99
104
[ DataMember ( Name = "tree_levels" ) ]
105
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
100
106
int ? TreeLevels { get ; set ; }
101
107
102
108
/// <summary>
@@ -113,6 +119,7 @@ public class GeoShapeProperty : DocValuesPropertyBase, IGeoShapeProperty
113
119
public GeoShapeProperty ( ) : base ( FieldType . GeoShape ) { }
114
120
115
121
/// <inheritdoc />
122
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
116
123
public double ? DistanceErrorPercentage { get ; set ; }
117
124
118
125
/// <inheritdoc />
@@ -125,18 +132,22 @@ public GeoShapeProperty() : base(FieldType.GeoShape) { }
125
132
public GeoOrientation ? Orientation { get ; set ; }
126
133
127
134
/// <inheritdoc />
135
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
128
136
public bool ? PointsOnly { get ; set ; }
129
137
130
138
/// <inheritdoc />
139
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
131
140
public Distance Precision { get ; set ; }
132
141
133
142
/// <inheritdoc />
134
143
public GeoStrategy ? Strategy { get ; set ; }
135
144
136
145
/// <inheritdoc />
146
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
137
147
public GeoTree ? Tree { get ; set ; }
138
148
139
149
/// <inheritdoc />
150
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
140
151
public int ? TreeLevels { get ; set ; }
141
152
142
153
/// <inheritdoc />
@@ -151,38 +162,54 @@ public class GeoShapePropertyDescriptor<T>
151
162
{
152
163
public GeoShapePropertyDescriptor ( ) : base ( FieldType . GeoShape ) { }
153
164
165
+
166
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
154
167
double ? IGeoShapeProperty . DistanceErrorPercentage { get ; set ; }
155
168
bool ? IGeoShapeProperty . IgnoreMalformed { get ; set ; }
156
169
bool ? IGeoShapeProperty . IgnoreZValue { get ; set ; }
157
170
GeoOrientation ? IGeoShapeProperty . Orientation { get ; set ; }
171
+
172
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
158
173
bool ? IGeoShapeProperty . PointsOnly { get ; set ; }
174
+
175
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
159
176
Distance IGeoShapeProperty . Precision { get ; set ; }
160
177
GeoStrategy ? IGeoShapeProperty . Strategy { get ; set ; }
178
+
179
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
161
180
GeoTree ? IGeoShapeProperty . Tree { get ; set ; }
181
+
182
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
162
183
int ? IGeoShapeProperty . TreeLevels { get ; set ; }
163
184
bool ? IGeoShapeProperty . Coerce { get ; set ; }
164
185
165
186
/// <inheritdoc cref="IGeoShapeProperty.Tree" />
187
+
188
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
166
189
public GeoShapePropertyDescriptor < T > Tree ( GeoTree ? tree ) => Assign ( tree , ( a , v ) => a . Tree = v ) ;
167
190
168
191
/// <inheritdoc cref="IGeoShapeProperty.TreeLevels" />
192
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
169
193
public GeoShapePropertyDescriptor < T > TreeLevels ( int ? treeLevels ) => Assign ( treeLevels , ( a , v ) => a . TreeLevels = v ) ;
170
194
171
195
/// <inheritdoc cref="IGeoShapeProperty.Strategy" />
172
196
public GeoShapePropertyDescriptor < T > Strategy ( GeoStrategy ? strategy ) => Assign ( strategy , ( a , v ) => a . Strategy = v ) ;
173
197
174
198
/// <inheritdoc cref="IGeoShapeProperty.Precision" />
199
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
175
200
public GeoShapePropertyDescriptor < T > Precision ( double precision , DistanceUnit unit ) =>
176
201
Assign ( new Distance ( precision , unit ) , ( a , v ) => a . Precision = v ) ;
177
202
178
203
/// <inheritdoc cref="IGeoShapeProperty.Orientation" />
179
204
public GeoShapePropertyDescriptor < T > Orientation ( GeoOrientation ? orientation ) => Assign ( orientation , ( a , v ) => a . Orientation = v ) ;
180
205
181
206
/// <inheritdoc cref="IGeoShapeProperty.DistanceErrorPercentage" />
207
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
182
208
public GeoShapePropertyDescriptor < T > DistanceErrorPercentage ( double ? distanceErrorPercentage ) =>
183
209
Assign ( distanceErrorPercentage , ( a , v ) => a . DistanceErrorPercentage = v ) ;
184
210
185
211
/// <inheritdoc cref="IGeoShapeProperty.PointsOnly" />
212
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
186
213
public GeoShapePropertyDescriptor < T > PointsOnly ( bool ? pointsOnly = true ) => Assign ( pointsOnly , ( a , v ) => a . PointsOnly = v ) ;
187
214
188
215
/// <inheritdoc cref="IGeoShapeProperty.IgnoreMalformed" />
0 commit comments