since we now take all#enabled into account when checking for include_in_all, there is no need to set it on every mapper
This commit is contained in:
parent
185cd68045
commit
3361a9365b
|
@ -251,11 +251,6 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent {
|
|||
|
||||
this.typeFilter = new TermFilter(typeMapper().term(type));
|
||||
|
||||
// if we are not enabling all, set it to false on the root object, (and on all the rest...)
|
||||
if (!allFieldMapper.enabled()) {
|
||||
this.rootObjectMapper.includeInAll(allFieldMapper.enabled());
|
||||
}
|
||||
|
||||
rootObjectMapper.putMapper(idFieldMapper);
|
||||
if (boostFieldMapper != null) {
|
||||
rootObjectMapper.putMapper(boostFieldMapper);
|
||||
|
|
Loading…
Reference in New Issue