0
0

Merge branch 'fix_ptr_handling' of https://github.com/StreamBoat/bleve into StreamBoat-fix_ptr_handling

This commit is contained in:
Marty Schoch 2015-01-16 17:48:25 -05:00
commit 141585b806

View File

@ -254,7 +254,7 @@ func (dm *DocumentMapping) walkDocument(data interface{}, path []string, indexes
case reflect.Ptr:
ptrElem := val.Elem()
if ptrElem.IsValid() && ptrElem.CanInterface() {
dm.walkDocument(ptrElem.Interface(), path, indexes, context)
dm.processProperty(ptrElem.Interface(), path, indexes, context)
}
}
}