You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial work to support deprecated properties
* Support additional deprecated properties on range query
* Allow skipping some checks in code standards
Copy file name to clipboardExpand all lines: src/Nest/QueryDsl/TermLevel/Range/DateRangeQuery.cs
+63-10Lines changed: 63 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+
usingSystem;
5
6
usingSystem.Runtime.Serialization;
6
7
usingElasticsearch.Net.Utf8Json;
7
8
@@ -31,18 +32,67 @@ public interface IDateRangeQuery : IRangeQuery
31
32
32
33
[DataMember(Name="time_zone")]
33
34
stringTimeZone{get;set;}
35
+
36
+
/// <summary>
37
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
38
+
/// </summary>
39
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
40
+
[DataMember(Name="from")]
41
+
DateMathFrom{get;set;}
42
+
43
+
/// <summary>
44
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
45
+
/// </summary>
46
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
47
+
[DataMember(Name="to")]
48
+
DateMathTo{get;set;}
49
+
50
+
/// <summary>
51
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
52
+
/// </summary>
53
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
54
+
[DataMember(Name="include_lower")]
55
+
bool?IncludeLower{get;set;}
56
+
57
+
/// <summary>
58
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
59
+
/// </summary>
60
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
77
+
/// </summary>
78
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
79
+
publicDateMathFrom{get;set;}
80
+
/// <summary>
81
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
82
+
/// </summary>
83
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
84
+
publicDateMathTo{get;set;}
85
+
/// <summary>
86
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
87
+
/// </summary>
88
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
89
+
publicbool?IncludeLower{get;set;}
90
+
/// <summary>
91
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
92
+
/// </summary>
93
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
Copy file name to clipboardExpand all lines: src/Nest/QueryDsl/TermLevel/Range/LongRangeQuery.cs
+60-8Lines changed: 60 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+
usingSystem;
5
6
usingSystem.Runtime.Serialization;
6
7
usingElasticsearch.Net.Utf8Json;
7
8
@@ -23,8 +24,33 @@ public interface ILongRangeQuery : IRangeQuery
23
24
[DataMember(Name="lte")]
24
25
long?LessThanOrEqualTo{get;set;}
25
26
26
-
[DataMember(Name="relation")]
27
+
[DataMember(Name="relation")]
27
28
RangeRelation?Relation{get;set;}
29
+
30
+
/// <summary>
31
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
32
+
/// </summary>
33
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
34
+
[DataMember(Name="from")]
35
+
long?From{get;set;}
36
+
/// <summary>
37
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
38
+
/// </summary>
39
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
40
+
[DataMember(Name="to")]
41
+
long?To{get;set;}
42
+
/// <summary>
43
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
44
+
/// </summary>
45
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
46
+
[DataMember(Name="include_lower")]
47
+
bool?IncludeLower{get;set;}
48
+
/// <summary>
49
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
50
+
/// </summary>
51
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
@@ -34,6 +60,27 @@ public class LongRangeQuery : FieldNameQueryBase, ILongRangeQuery
34
60
publiclong?LessThan{get;set;}
35
61
publiclong?LessThanOrEqualTo{get;set;}
36
62
63
+
/// <summary>
64
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
65
+
/// </summary>
66
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
67
+
publiclong?From{get;set;}
68
+
/// <summary>
69
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
70
+
/// </summary>
71
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
72
+
publiclong?To{get;set;}
73
+
/// <summary>
74
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
75
+
/// </summary>
76
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
77
+
publicbool?IncludeLower{get;set;}
78
+
/// <summary>
79
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
80
+
/// </summary>
81
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
Copy file name to clipboardExpand all lines: src/Nest/QueryDsl/TermLevel/Range/NumericRangeQuery.cs
+64-9Lines changed: 64 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+
usingSystem;
5
6
usingSystem.Runtime.Serialization;
6
7
usingElasticsearch.Net.Utf8Json;
7
8
@@ -25,6 +26,34 @@ public interface INumericRangeQuery : IRangeQuery
25
26
26
27
[DataMember(Name="relation")]
27
28
RangeRelation?Relation{get;set;}
29
+
30
+
/// <summary>
31
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
32
+
/// </summary>
33
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
34
+
[DataMember(Name="from")]
35
+
double?From{get;set;}
36
+
37
+
/// <summary>
38
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
39
+
/// </summary>
40
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
41
+
[DataMember(Name="to")]
42
+
double?To{get;set;}
43
+
44
+
/// <summary>
45
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
46
+
/// </summary>
47
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
48
+
[DataMember(Name="include_lower")]
49
+
bool?IncludeLower{get;set;}
50
+
51
+
/// <summary>
52
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
53
+
/// </summary>
54
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
@@ -33,8 +62,29 @@ public class NumericRangeQuery : FieldNameQueryBase, INumericRangeQuery
33
62
publicdouble?GreaterThanOrEqualTo{get;set;}
34
63
publicdouble?LessThan{get;set;}
35
64
publicdouble?LessThanOrEqualTo{get;set;}
36
-
37
65
publicRangeRelation?Relation{get;set;}
66
+
67
+
/// <summary>
68
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
69
+
/// </summary>
70
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
71
+
publicdouble?From{get;set;}
72
+
/// <summary>
73
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
74
+
/// </summary>
75
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
76
+
publicdouble?To{get;set;}
77
+
/// <summary>
78
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
79
+
/// </summary>
80
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
81
+
publicbool?IncludeLower{get;set;}
82
+
/// <summary>
83
+
/// WARNING: This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.
84
+
/// </summary>
85
+
[Obsolete("This property is considered deprecated and will be removed in the next major release. Range queries should prefer the gt, lt, gte and lte properties instead.")]
0 commit comments