Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Feb 7, 2024
1 parent 58348fc commit 4761d7c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ private static void checkNonPropertiesFields(ObjectNode mappings, List<String> a
mappings.remove("dynamic_templates");
// remove `dynamic` field
mappings.remove("dynamic");
// remove `_default` field, we do not parse `_default_` mapping, only explicit mapping.
// `_default` _mapping type is deprecated in 7.0 and removed in 8.0
// https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html
mappings.remove("_default_");
// check explicit mapping
if (mappings.isEmpty()) {
throw new DorisEsException("Do not support index without explicit mapping.");
Expand Down

0 comments on commit 4761d7c

Please sign in to comment.