Merge branch 'fix_ptr_handling' of https://github.com/StreamBoat/bleve into StreamBoat-fix_ptr_handling
This commit is contained in:
commit
141585b806
|
@ -254,7 +254,7 @@ func (dm *DocumentMapping) walkDocument(data interface{}, path []string, indexes
|
||||||
case reflect.Ptr:
|
case reflect.Ptr:
|
||||||
ptrElem := val.Elem()
|
ptrElem := val.Elem()
|
||||||
if ptrElem.IsValid() && ptrElem.CanInterface() {
|
if ptrElem.IsValid() && ptrElem.CanInterface() {
|
||||||
dm.walkDocument(ptrElem.Interface(), path, indexes, context)
|
dm.processProperty(ptrElem.Interface(), path, indexes, context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user