cleanup traversing unneeded mappings

This commit is contained in:
kimchy 2010-11-12 14:50:05 +02:00
parent beb77c9b0a
commit bba98cf1b7
1 changed files with 0 additions and 4 deletions

View File

@ -244,9 +244,6 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent {
tempFieldMappers.add(sourceFieldMapper);
tempFieldMappers.add(uidFieldMapper);
tempFieldMappers.add(allFieldMapper);
if (boostFieldMapper != null) {
tempFieldMappers.add(boostFieldMapper);
}
// now traverse and get all the statically defined ones
rootObjectMapper.traverse(new FieldMapperListener() {
@Override public void fieldMapper(FieldMapper fieldMapper) {
@ -415,7 +412,6 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent {
}
fieldMapperListener.fieldMapper(sourceFieldMapper);
fieldMapperListener.fieldMapper(typeFieldMapper);
fieldMapperListener.fieldMapper(idFieldMapper);
fieldMapperListener.fieldMapper(uidFieldMapper);
fieldMapperListener.fieldMapper(allFieldMapper);
rootObjectMapper.traverse(fieldMapperListener);