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:
kimchy 2011-03-02 03:01:01 +02:00
parent 185cd68045
commit 3361a9365b
1 changed files with 0 additions and 5 deletions

View File

@ -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);