diff --git a/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java b/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java index 4fdce1d3e82..2f106e98589 100644 --- a/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java +++ b/qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java @@ -98,7 +98,6 @@ public class FullClusterRestartIT extends AbstractFullClusterRestartTestCase { type = getOldClusterVersion().before(Version.V_6_7_0) ? "doc" : "_doc"; } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/57245") public void testSearch() throws Exception { int count; if (isRunningAgainstOldCluster()) { diff --git a/server/src/main/java/org/elasticsearch/index/mapper/FieldNamesFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/FieldNamesFieldMapper.java index c5d9516e2b2..60151e4e9c8 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/FieldNamesFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/FieldNamesFieldMapper.java @@ -235,9 +235,7 @@ public class FieldNamesFieldMapper extends MetadataFieldMapper { } for (String path : paths) { for (String fieldName : extractFieldNames(path)) { - if (fieldType.indexOptions() != IndexOptions.NONE || fieldType.stored()) { - document.add(new Field(fieldType().name(), fieldName, fieldType)); - } + document.add(new Field(fieldType().name(), fieldName, Defaults.FIELD_TYPE)); } } }