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
Copy file name to clipboardExpand all lines: src/Nest/Mapping/TypeMapping.cs
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,11 @@ public interface ITypeMapping
20
20
[JsonProperty("include_in_all")]
21
21
bool?IncludeInAll{get;set;}
22
22
23
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
23
24
[JsonProperty("analyzer")]
24
25
stringAnalyzer{get;set;}
25
26
27
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
26
28
[JsonProperty("search_analyzer")]
27
29
stringSearchAnalyzer{get;set;}
28
30
@@ -66,8 +68,6 @@ public class TypeMapping : ITypeMapping
66
68
/// <inheritdoc/>
67
69
publicIAllFieldAllField{get;set;}
68
70
/// <inheritdoc/>
69
-
publicstringAnalyzer{get;set;}
70
-
/// <inheritdoc/>
71
71
publicbool?DateDetection{get;set;}
72
72
/// <inheritdoc/>
73
73
publicbool?IncludeInAll{get;set;}
@@ -92,6 +92,10 @@ public class TypeMapping : ITypeMapping
92
92
/// <inheritdoc/>
93
93
publicIRoutingFieldRoutingField{get;set;}
94
94
/// <inheritdoc/>
95
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
96
+
publicstringAnalyzer{get;set;}
97
+
/// <inheritdoc/>
98
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
95
99
publicstringSearchAnalyzer{get;set;}
96
100
/// <inheritdoc/>
97
101
publicISizeFieldSizeField{get;set;}
@@ -105,7 +109,6 @@ public class TypeMappingDescriptor<T> : DescriptorBase<TypeMappingDescriptor<T>,
@@ -118,6 +121,9 @@ public class TypeMappingDescriptor<T> : DescriptorBase<TypeMappingDescriptor<T>,
118
121
IParentFieldITypeMapping.ParentField{get;set;}
119
122
IPropertiesITypeMapping.Properties{get;set;}
120
123
IRoutingFieldITypeMapping.RoutingField{get;set;}
124
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
125
+
stringITypeMapping.Analyzer{get;set;}
126
+
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
121
127
stringITypeMapping.SearchAnalyzer{get;set;}
122
128
ISizeFieldITypeMapping.SizeField{get;set;}
123
129
ISourceFieldITypeMapping.SourceField{get;set;}
@@ -150,9 +156,11 @@ public TypeMappingDescriptor<T> AutoMap(IPropertyVisitor visitor = null, int max
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
[Obsolete("Scheduled to be removed in 6.0. Default analyzers can no longer be specified at the type level. Use an index or field level analyzer instead.")]
0 commit comments