You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a recursive type mapping which I create using AutoMap(..., 10). This works fine when creating the mapping during index creation via the following method:
TypeMappingDescriptor<T> AutoMap(IPropertyVisitor visitor = null, int maxRecursion = 0)
However, I also need to update the mapping dynamically (on all levels) with new fields, which I perform via this method (different class):
PutMappingDescriptor<T> AutoMap(IPropertyVisitor visitor = null, int maxRecursion = 0)
This only updates the mapping on the top level. Looks like this method ignores the maxRecursion argument, it always sends 0 to the PropertyWalker.
In my case this is a critical issue, as I am using dynamic = strict. This will cause later attempts to set the new field a few levels down in the hierarchy of a document to fail, because the type mapping contains the new field only on top level.
The text was updated successfully, but these errors were encountered:
I have a recursive type mapping which I create using AutoMap(..., 10). This works fine when creating the mapping during index creation via the following method:
However, I also need to update the mapping dynamically (on all levels) with new fields, which I perform via this method (different class):
This only updates the mapping on the top level. Looks like this method ignores the maxRecursion argument, it always sends 0 to the PropertyWalker.
In my case this is a critical issue, as I am using dynamic = strict. This will cause later attempts to set the new field a few levels down in the hierarchy of a document to fail, because the type mapping contains the new field only on top level.
The text was updated successfully, but these errors were encountered: