Skip to content

Commit

Permalink
Restore original "is within leaf" value in SparseVectorFieldMapper (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikep86 authored Dec 11, 2024
1 parent b40a520 commit bcba5bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog/118380.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 118380
summary: Restore original "is within leaf" value in `SparseVectorFieldMapper`
area: Mapping
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public void parse(DocumentParserContext context) throws IOException {
);
}

final boolean isWithinLeaf = context.path().isWithinLeafObject();
String feature = null;
try {
// make sure that we don't expand dots in field names while parsing
Expand Down Expand Up @@ -234,7 +235,7 @@ public void parse(DocumentParserContext context) throws IOException {
context.addToFieldNames(fieldType().name());
}
} finally {
context.path().setWithinLeafObject(false);
context.path().setWithinLeafObject(isWithinLeaf);
}
}

Expand Down

0 comments on commit bcba5bf

Please sign in to comment.