Skip to content

Commit 9832972

Browse files
authored
Remove deprecated constant META_FIELDS_BEFORE_7DOT8 (opensearch-project#13860)
* Add _primary_term to builtInMetadataMappers Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove deprecated constant META_FIELDS_BEFORE_7DOT8 Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent b9befaa commit 9832972

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1313
- [Remote Store] Upload translog checkpoint as object metadata to translog.tlog([#13637](https://github.com/opensearch-project/OpenSearch/pull/13637))
1414
- Add getMetadataFields to MapperService ([#13819](https://github.com/opensearch-project/OpenSearch/pull/13819))
1515
- [Remote State] Add async remote state deletion task running on an interval, configurable by a setting ([#13131](https://github.com/opensearch-project/OpenSearch/pull/13131))
16+
- Remove deprecated constant META_FIELDS_BEFORE_7DOT8 ([#13860](https://github.com/opensearch-project/OpenSearch/pull/13860))
1617

1718
### Dependencies
1819
- Bump `com.github.spullara.mustache.java:compiler` from 0.9.10 to 0.9.13 ([#13329](https://github.com/opensearch-project/OpenSearch/pull/13329), [#13559](https://github.com/opensearch-project/OpenSearch/pull/13559))

server/src/main/java/org/opensearch/index/mapper/MapperService.java

-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
import java.io.Closeable;
7474
import java.io.IOException;
7575
import java.util.ArrayList;
76-
import java.util.Arrays;
7776
import java.util.Collections;
7877
import java.util.HashMap;
7978
import java.util.HashSet;
@@ -201,11 +200,6 @@ public enum MergeReason {
201200
Property.IndexScope,
202201
Property.Deprecated
203202
);
204-
// Deprecated set of meta-fields, for checking if a field is meta, use an instance method isMetadataField instead
205-
@Deprecated
206-
public static final Set<String> META_FIELDS_BEFORE_7DOT8 = Collections.unmodifiableSet(
207-
new HashSet<>(Arrays.asList("_id", IgnoredFieldMapper.NAME, "_index", "_routing", "_size", "_timestamp", "_ttl", "_type"))
208-
);
209203

210204
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(MapperService.class);
211205

0 commit comments

Comments
 (0)