1
+ using System ;
1
2
using System . Diagnostics ;
2
3
using Newtonsoft . Json ;
3
4
@@ -23,6 +24,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
23
24
/// noting that large shapes will have greater false positives.
24
25
/// </remarks>
25
26
[ JsonProperty ( "distance_error_pct" ) ]
27
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
26
28
double ? DistanceErrorPercentage { get ; set ; }
27
29
28
30
/// <summary>
@@ -63,6 +65,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
63
65
/// so that geo_shape queries are optimal on a point only field.
64
66
/// </summary>
65
67
[ JsonProperty ( "points_only" ) ]
68
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
66
69
bool ? PointsOnly { get ; set ; }
67
70
68
71
/// <summary>
@@ -71,6 +74,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
71
74
/// the best tree_levels value to honor this precision.
72
75
/// </summary>
73
76
[ JsonProperty ( "precision" ) ]
77
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
74
78
Distance Precision { get ; set ; }
75
79
76
80
/// <summary>
@@ -85,6 +89,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
85
89
/// Name of the PrefixTree implementation to be used.
86
90
/// Defaults to <see cref="GeoTree.Geohash" />
87
91
/// </summary>
92
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
88
93
[ JsonProperty ( "tree" ) ]
89
94
GeoTree ? Tree { get ; set ; }
90
95
@@ -96,6 +101,7 @@ public interface IGeoShapeProperty : IDocValuesProperty
96
101
/// <see cref="Precision" /> parameter instead.
97
102
/// </summary>
98
103
[ JsonProperty ( "tree_levels" ) ]
104
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
99
105
int ? TreeLevels { get ; set ; }
100
106
101
107
/// <summary>
@@ -112,6 +118,7 @@ public class GeoShapeProperty : DocValuesPropertyBase, IGeoShapeProperty
112
118
public GeoShapeProperty ( ) : base ( FieldType . GeoShape ) { }
113
119
114
120
/// <inheritdoc />
121
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
115
122
public double ? DistanceErrorPercentage { get ; set ; }
116
123
117
124
/// <inheritdoc />
@@ -124,18 +131,22 @@ public GeoShapeProperty() : base(FieldType.GeoShape) { }
124
131
public GeoOrientation ? Orientation { get ; set ; }
125
132
126
133
/// <inheritdoc />
134
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
127
135
public bool ? PointsOnly { get ; set ; }
128
136
129
137
/// <inheritdoc />
138
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
130
139
public Distance Precision { get ; set ; }
131
140
132
141
/// <inheritdoc />
133
142
public GeoStrategy ? Strategy { get ; set ; }
134
143
135
144
/// <inheritdoc />
145
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
136
146
public GeoTree ? Tree { get ; set ; }
137
147
138
148
/// <inheritdoc />
149
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
139
150
public int ? TreeLevels { get ; set ; }
140
151
141
152
/// <inheritdoc />
@@ -150,39 +161,55 @@ public class GeoShapePropertyDescriptor<T>
150
161
{
151
162
public GeoShapePropertyDescriptor ( ) : base ( FieldType . GeoShape ) { }
152
163
164
+
165
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
153
166
double ? IGeoShapeProperty . DistanceErrorPercentage { get ; set ; }
154
167
bool ? IGeoShapeProperty . IgnoreMalformed { get ; set ; }
155
168
bool ? IGeoShapeProperty . IgnoreZValue { get ; set ; }
156
169
GeoOrientation ? IGeoShapeProperty . Orientation { get ; set ; }
170
+
171
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
157
172
bool ? IGeoShapeProperty . PointsOnly { get ; set ; }
173
+
174
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
158
175
Distance IGeoShapeProperty . Precision { get ; set ; }
159
176
GeoStrategy ? IGeoShapeProperty . Strategy { get ; set ; }
177
+
178
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
160
179
GeoTree ? IGeoShapeProperty . Tree { get ; set ; }
180
+
181
+ [ Obsolete ( "Removed in Elasticsearch 6.6" ) ]
161
182
int ? IGeoShapeProperty . TreeLevels { get ; set ; }
162
183
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