This commit is contained in:
parent
e355d989b6
commit
dda00b7176
|
@ -0,0 +1,5 @@
|
|||
pr: 118380
|
||||
summary: Restore original "is within leaf" value in `SparseVectorFieldMapper`
|
||||
area: Mapping
|
||||
type: bug
|
||||
issues: []
|
|
@ -171,6 +171,7 @@ public class SparseVectorFieldMapper extends FieldMapper {
|
|||
);
|
||||
}
|
||||
|
||||
final boolean isWithinLeaf = context.path().isWithinLeafObject();
|
||||
String feature = null;
|
||||
try {
|
||||
// make sure that we don't expand dots in field names while parsing
|
||||
|
@ -205,7 +206,7 @@ public class SparseVectorFieldMapper extends FieldMapper {
|
|||
context.addToFieldNames(fieldType().name());
|
||||
}
|
||||
} finally {
|
||||
context.path().setWithinLeafObject(false);
|
||||
context.path().setWithinLeafObject(isWithinLeaf);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue