@@ -437,7 +437,7 @@ public void preParse(DocumentParserContext context) throws IOException {
437437        XContentType  contentType  = context .sourceToParse ().getXContentType ();
438438
439439        final  var  originalSource  = context .sourceToParse ().source ();
440-         final  var  storedSource  = stored () ? removeSyntheticSourceFields (context .mappingLookup (), originalSource , contentType ) : null ;
440+         final  var  storedSource  = stored () ? removeSyntheticVectorFields (context .mappingLookup (), originalSource , contentType ) : null ;
441441        final  var  adaptedStoredSource  = applyFilters (context .mappingLookup (), storedSource , contentType , false );
442442
443443        if  (adaptedStoredSource  != null ) {
@@ -458,7 +458,7 @@ public void preParse(DocumentParserContext context) throws IOException {
458458                context .doc ().add (new  NumericDocValuesField (RECOVERY_SOURCE_SIZE_NAME , originalSource .length ()));
459459            } else  {
460460                // if we omitted source or modified it we add the _recovery_source to ensure we have it for ops based recovery 
461-                 var  recoverySource  = removeSyntheticSourceFields (context .mappingLookup (), originalSource , contentType ).toBytesRef ();
461+                 var  recoverySource  = removeSyntheticVectorFields (context .mappingLookup (), originalSource , contentType ).toBytesRef ();
462462                context .doc ()
463463                    .add (new  StoredField (RECOVERY_SOURCE_NAME , recoverySource .bytes , recoverySource .offset , recoverySource .length ));
464464                context .doc ().add (new  NumericDocValuesField (RECOVERY_SOURCE_NAME , 1 ));
@@ -467,7 +467,7 @@ public void preParse(DocumentParserContext context) throws IOException {
467467    }
468468
469469    /** 
470-      * Removes the synthetic source  fields (_inference and synthetic vector fields) from the {@code _source} if it is present. 
470+      * Removes the synthetic vector  fields (_inference and synthetic vector fields) from the {@code _source} if it is present. 
471471     * These fields are regenerated at query or snapshot recovery time using stored fields and doc values. 
472472     * 
473473     * <p>For details on how the metadata is re-added, see:</p> 
@@ -476,7 +476,7 @@ public void preParse(DocumentParserContext context) throws IOException {
476476     *   <li>{@link FetchSourcePhase#getProcessor(FetchContext)}</li> 
477477     * </ul> 
478478     */ 
479-     private  BytesReference  removeSyntheticSourceFields (
479+     private  BytesReference  removeSyntheticVectorFields (
480480        MappingLookup  mappingLookup ,
481481        @ Nullable  BytesReference  originalSource ,
482482        @ Nullable  XContentType  contentType 
0 commit comments