diff --git a/src/main/java/org/elasticsearch/index/mapper/internal/AllFieldMapper.java b/src/main/java/org/elasticsearch/index/mapper/internal/AllFieldMapper.java index 8b9afcbcc49..b1aaf3c7e4e 100644 --- a/src/main/java/org/elasticsearch/index/mapper/internal/AllFieldMapper.java +++ b/src/main/java/org/elasticsearch/index/mapper/internal/AllFieldMapper.java @@ -335,7 +335,7 @@ public class AllFieldMapper extends AbstractFieldMapper implements Interna if (similarity() != null) { builder.field("similarity", similarity().name()); } else if (includeDefaults) { - builder.field("similariry", SimilarityLookupService.DEFAULT_SIMILARITY); + builder.field("similarity", SimilarityLookupService.DEFAULT_SIMILARITY); } if (customFieldDataSettings != null) {