multi_field not returning for default field for certain type, closes #123

This commit is contained in:
kimchy 2010-04-07 17:11:12 +03:00
parent bb49db8f92
commit 5e4f7c77a2
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ public class JsonMultiFieldMapper implements JsonMapper, JsonIncludeInAllMapper
} }
@Override public void traverse(FieldMapperListener fieldMapperListener) { @Override public void traverse(FieldMapperListener fieldMapperListener) {
if (defaultMapper != null) {
defaultMapper.traverse(fieldMapperListener);
}
for (JsonMapper mapper : mappers.values()) { for (JsonMapper mapper : mappers.values()) {
mapper.traverse(fieldMapperListener); mapper.traverse(fieldMapperListener);
} }