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 @@ -200,6 +200,7 @@ public void parse(DocumentParserContext context) throws IOException {
200200            );
201201        }
202202
203+         final  boolean  isWithinLeaf  = context .path ().isWithinLeafObject ();
203204        String  feature  = null ;
204205        try  {
205206            // make sure that we don't expand dots in field names while parsing 
@@ -234,7 +235,7 @@ public void parse(DocumentParserContext context) throws IOException {
234235                context .addToFieldNames (fieldType ().name ());
235236            }
236237        } finally  {
237-             context .path ().setWithinLeafObject (false );
238+             context .path ().setWithinLeafObject (isWithinLeaf );
238239        }
239240    }
240241
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments