@@ -113,8 +113,7 @@ static DeprecationIssue oldIndicesCheck(IndexMetadata indexMetadata) {
113
113
if (createdWith .before (Version .V_7_0_0 )) {
114
114
return new DeprecationIssue (DeprecationIssue .Level .CRITICAL ,
115
115
"Index created before 7.0" ,
116
- "https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
117
- "breaking-changes-8.0.html" ,
116
+ "https://ela.st/es-deprecation-7-reindex" ,
118
117
"This index was created using version: " + createdWith ,
119
118
false , null );
120
119
}
@@ -135,8 +134,7 @@ static DeprecationIssue tooManyFieldsCheck(IndexMetadata indexMetadata) {
135
134
if (fieldCount .get () > 1024 ) {
136
135
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
137
136
"Number of fields exceeds automatic field expansion limit" ,
138
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html" +
139
- "#_limiting_the_number_of_auto_expanded_fields" ,
137
+ "https://ela.st/es-deprecation-7-number-of-auto-expanded-fields" ,
140
138
"This index has [" + fieldCount .get () + "] fields, which exceeds the automatic field expansion limit of 1024 " +
141
139
"and does not have [" + IndexSettings .DEFAULT_FIELD_SETTING .getKey () + "] set, which may cause queries which use " +
142
140
"automatic field expansion, such as query_string, simple_query_string, and multi_match to fail if fields are not " +
@@ -159,7 +157,7 @@ static DeprecationIssue deprecatedDateTimeFormat(IndexMetadata indexMetadata) {
159
157
if (fields .size () > 0 ) {
160
158
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
161
159
"Date field format uses patterns which has changed meaning in 7.0" ,
162
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html#breaking_70_java_time_changes " ,
160
+ "https://ela.st/es-deprecation-7-java-time " ,
163
161
"This index has date fields with deprecated formats: " + fields + ". "
164
162
+ JodaDeprecationPatterns .USE_NEW_FORMAT_SPECIFIERS , false , null );
165
163
}
@@ -181,8 +179,7 @@ static DeprecationIssue chainedMultiFieldsCheck(IndexMetadata indexMetadata) {
181
179
if (issues .size () > 0 ) {
182
180
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
183
181
"Multi-fields within multi-fields" ,
184
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.x/breaking-changes-7.3.html" +
185
- "#_defining_multi_fields_within_multi_fields" ,
182
+ "https://ela.st/es-deprecation-7-chained-multi-fields" ,
186
183
"The names of fields that contain chained multi-fields: " + issues , false , null );
187
184
}
188
185
return null ;
@@ -209,7 +206,7 @@ static DeprecationIssue fieldNamesDisabledCheck(IndexMetadata indexMetadata) {
209
206
if ((mapping != null ) && ClusterDeprecationChecks .mapContainsFieldNamesDisabled (mapping .getSourceAsMap ())) {
210
207
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
211
208
"Index mapping contains explicit `_field_names` enabling settings." ,
212
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.15/mapping-field-names-field.html#disable-field-names " ,
209
+ "https://ela.st/es-deprecation-7-field_names-settings " ,
213
210
"The index mapping contains a deprecated `enabled` setting for `_field_names` that should be removed moving foward." ,
214
211
false , null );
215
212
}
@@ -270,8 +267,7 @@ static DeprecationIssue translogRetentionSettingCheck(IndexMetadata indexMetadat
270
267
|| IndexSettings .INDEX_TRANSLOG_RETENTION_AGE_SETTING .exists (indexMetadata .getSettings ())) {
271
268
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
272
269
"translog retention settings are ignored" ,
273
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.15/index-modules-translog.html" +
274
- "#index-modules-translog-retention" ,
270
+ "https://ela.st/es-deprecation-7-translog-settings" ,
275
271
"translog retention settings [index.translog.retention.size] and [index.translog.retention.age] are ignored " +
276
272
"because translog is no longer used in peer recoveries with soft-deletes enabled (default in 7.0 or later)" ,
277
273
false , null );
@@ -284,8 +280,7 @@ static DeprecationIssue checkIndexDataPath(IndexMetadata indexMetadata) {
284
280
if (IndexMetadata .INDEX_DATA_PATH_SETTING .exists (indexMetadata .getSettings ())) {
285
281
final String message = String .format (Locale .ROOT ,
286
282
"setting [%s] is deprecated and will be removed in a future version" , IndexMetadata .INDEX_DATA_PATH_SETTING .getKey ());
287
- final String url = "https://www.elastic.co/guide/en/elasticsearch/reference/7.13/" +
288
- "breaking-changes-7.13.html#deprecate-shared-data-path-setting" ;
283
+ final String url = "https://ela.st/es-deprecation-7-shared-path-settings" ;
289
284
final String details = "Found index data path configured. Discontinue use of this setting." ;
290
285
return new DeprecationIssue (DeprecationIssue .Level .CRITICAL , message , url , details , false , null );
291
286
}
@@ -303,8 +298,7 @@ private static DeprecationIssue slowLogSettingCheck(IndexMetadata indexMetadata,
303
298
if (setting .exists (indexMetadata .getSettings ())) {
304
299
final String message = String .format (Locale .ROOT ,
305
300
"setting [%s] is deprecated and will be removed in a future version" , setting .getKey ());
306
- final String url = "https://www.elastic.co/guide/en/elasticsearch/reference/7.15/migrating-7.13.html" +
307
- "#breaking_713_infra_core_deprecations" ;
301
+ final String url = "https://ela.st/es-deprecation-7-slowlog-settings" ;
308
302
309
303
final String details = String .format (Locale .ROOT , "Found [%s] configured. Discontinue use of this setting. Use thresholds." ,
310
304
setting .getKey ());
@@ -318,7 +312,7 @@ static DeprecationIssue storeTypeSettingCheck(IndexMetadata indexMetadata) {
318
312
if (IndexModule .Type .SIMPLEFS .match (storeType )) {
319
313
return new DeprecationIssue (DeprecationIssue .Level .WARNING ,
320
314
"[simplefs] is deprecated and will be removed in future versions" ,
321
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.15/index-modules -store.html#file-system " ,
315
+ "https://ela.st/es-deprecation-7-simplefs -store-type " ,
322
316
"[simplefs] is deprecated and will be removed in 8.0. Use [niofs] or other file systems instead. " +
323
317
"Elasticsearch 7.15 or later uses [niofs] for the [simplefs] store type " +
324
318
"as it offers superior or equivalent performance to [simplefs]." , false , null );
@@ -345,23 +339,23 @@ static DeprecationIssue checkRemovedSetting(final Settings settings,
345
339
static DeprecationIssue checkIndexRoutingRequireSetting (IndexMetadata indexMetadata ) {
346
340
return checkRemovedSetting (indexMetadata .getSettings (),
347
341
INDEX_ROUTING_REQUIRE_SETTING ,
348
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.14/data -tier-shard- filtering.html#data-tier-allocation-filters " ,
342
+ "https://ela.st/es-deprecation-7 -tier-filtering-settings " ,
349
343
DeprecationIssue .Level .CRITICAL
350
344
);
351
345
}
352
346
353
347
static DeprecationIssue checkIndexRoutingIncludeSetting (IndexMetadata indexMetadata ) {
354
348
return checkRemovedSetting (indexMetadata .getSettings (),
355
349
INDEX_ROUTING_INCLUDE_SETTING ,
356
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.14/data -tier-shard- filtering.html#data-tier-allocation-filters " ,
350
+ "https://ela.st/es-deprecation-7 -tier-filtering-settings " ,
357
351
DeprecationIssue .Level .CRITICAL
358
352
);
359
353
}
360
354
361
355
static DeprecationIssue checkIndexRoutingExcludeSetting (IndexMetadata indexMetadata ) {
362
356
return checkRemovedSetting (indexMetadata .getSettings (),
363
357
INDEX_ROUTING_EXCLUDE_SETTING ,
364
- "https://www.elastic.co/guide/en/elasticsearch/reference/7.14/data -tier-shard- filtering.html#data-tier-allocation-filters " ,
358
+ "https://ela.st/es-deprecation-7 -tier-filtering-settings " ,
365
359
DeprecationIssue .Level .CRITICAL
366
360
);
367
361
}
@@ -399,8 +393,7 @@ static DeprecationIssue checkGeoShapeMappings(IndexMetadata indexMetadata) {
399
393
String details = String .format (Locale .ROOT ,
400
394
"The following geo_shape parameters must be removed from %s: [%s]" , indexMetadata .getIndex ().getName (),
401
395
messages .stream ().collect (Collectors .joining ("; " )));
402
- String url = "https://www.elastic.co/guide/en/elasticsearch/reference/6.6/breaking-changes-6.6.html" +
403
- "#_deprecated_literal_geo_shape_literal_parameters" ;
396
+ String url = "https://ela.st/es-deprecation-7-geo-shape-mappings" ;
404
397
return new DeprecationIssue (DeprecationIssue .Level .CRITICAL , message , url , details , false , null );
405
398
}
406
399
}
0 commit comments