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
This commit obsoletes the AllField and IndexField. Both should have been removed in 7.x but were missed.
Remove the DataMemberAttribute and add IgnoreDataMemberAttribute so that any value is not
sent in a request.
Fixes#3905
(cherry picked from commit c4ed49d)
Copy file name to clipboardExpand all lines: src/Nest/Indices/MappingManagement/PutMapping/PutMappingRequest.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ public partial interface IPutMappingRequest<TDocument> where TDocument : class {
18
18
publicpartialclassPutMappingRequest
19
19
{
20
20
/// <inheritdoc />
21
+
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
21
22
publicIAllFieldAllField{get;set;}
22
23
23
24
/// <inheritdoc />
@@ -36,6 +37,7 @@ public partial class PutMappingRequest
36
37
publicIFieldNamesFieldFieldNamesField{get;set;}
37
38
38
39
/// <inheritdoc />
40
+
[Obsolete("Configuration for the _index field is no longer supported in Elasticsearch 7.x and will be removed in the next major release.")]
39
41
publicIIndexFieldIndexField{get;set;}
40
42
41
43
/// <inheritdoc />
@@ -63,12 +65,14 @@ public partial class PutMappingRequest<TDocument> where TDocument : class { }
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
Copy file name to clipboardExpand all lines: src/Nest/Mapping/MetaFields/All/AllField.cs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
usingSystem.Runtime.Serialization;
1
+
usingSystem;
2
+
usingSystem.Runtime.Serialization;
2
3
3
4
namespaceNest
4
5
{
6
+
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
5
7
[ReadAs(typeof(AllField))]
6
8
publicinterfaceIAllField:IFieldMapping
7
9
{
@@ -36,6 +38,7 @@ public interface IAllField : IFieldMapping
36
38
bool?StoreTermVectors{get;set;}
37
39
}
38
40
41
+
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
39
42
publicclassAllField:IAllField
40
43
{
41
44
publicstringAnalyzer{get;set;}
@@ -50,7 +53,7 @@ public class AllField : IAllField
50
53
publicbool?StoreTermVectors{get;set;}
51
54
}
52
55
53
-
//OBSOLETE
56
+
[Obsolete("The _all field is no longer supported in Elasticsearch 7.x and will be removed in the next major release. The value will not be sent in a request. An _all like field can be achieved using copy_to")]
0 commit comments