@@ -700,7 +700,7 @@ private static void parseNonDynamicArray(
700700
701701 // Check if we need to record the array source. This only applies to synthetic source.
702702 boolean canRemoveSingleLeafElement = false ;
703- if (context .canAddIgnoredField () && ( parsesArrayValue ( mapper ) == false && supportStoringArrayOffsets == false ) ) {
703+ if (context .canAddIgnoredField () && supportStoringArrayOffsets == false ) {
704704 Mapper .SourceKeepMode mode = Mapper .SourceKeepMode .NONE ;
705705 boolean objectWithFallbackSyntheticSource = false ;
706706 if (mapper instanceof ObjectMapper objectMapper ) {
@@ -737,12 +737,10 @@ private static void parseNonDynamicArray(
737737 }
738738 }
739739
740- if (parsesArrayValue (mapper ) == false && supportStoringArrayOffsets == false ) {
741- // In synthetic source, if any array element requires storing its source as-is, it takes precedence over
742- // elements from regular source loading that are then skipped from the synthesized array source.
743- // To prevent this, we track that parsing sub-context is within array scope.
744- context = context .maybeCloneForArray (mapper );
745- }
740+ // In synthetic source, if any array element requires storing its source as-is, it takes precedence over
741+ // elements from regular source loading that are then skipped from the synthesized array source.
742+ // To prevent this, we track that parsing sub-context is within array scope.
743+ context = context .maybeCloneForArray (mapper );
746744
747745 XContentParser parser = context .parser ();
748746 XContentParser .Token token ;
0 commit comments