File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
server/src/main/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ pr : 118380
2
+ summary : Restore original "is within leaf" value in `SparseVectorFieldMapper`
3
+ area : Mapping
4
+ type : bug
5
+ issues : []
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ public void parse(DocumentParserContext context) throws IOException {
171
171
);
172
172
}
173
173
174
+ final boolean isWithinLeaf = context .path ().isWithinLeafObject ();
174
175
String feature = null ;
175
176
try {
176
177
// make sure that we don't expand dots in field names while parsing
@@ -205,7 +206,7 @@ public void parse(DocumentParserContext context) throws IOException {
205
206
context .addToFieldNames (fieldType ().name ());
206
207
}
207
208
} finally {
208
- context .path ().setWithinLeafObject (false );
209
+ context .path ().setWithinLeafObject (isWithinLeaf );
209
210
}
210
211
}
211
212
You can’t perform that action at this time.
0 commit comments