Skip to content

Commit 90d9c15

Browse files
committed
since we now take all#enabled into account when checking for include_in_all, there is no need to set it on every mapper
1 parent 0b368f4 commit 90d9c15

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ public XContentDocumentMapper(String index, XContentDocumentMapperParser docMapp
251251

252252
this.typeFilter = new TermFilter(typeMapper().term(type));
253253

254-
// if we are not enabling all, set it to false on the root object, (and on all the rest...)
255-
if (!allFieldMapper.enabled()) {
256-
this.rootObjectMapper.includeInAll(allFieldMapper.enabled());
257-
}
258-
259254
rootObjectMapper.putMapper(idFieldMapper);
260255
if (boostFieldMapper != null) {
261256
rootObjectMapper.putMapper(boostFieldMapper);

0 commit comments

Comments
 (0)