Skip to content

Commit

Permalink
Revert "Extract synthetic source logic from DocumentParser (elastic#1…
Browse files Browse the repository at this point in the history
…16049)" (elastic#119530)

This reverts commit e8d32af.
  • Loading branch information
lkts authored Jan 3, 2025
1 parent 5960af6 commit 8ca74fb
Show file tree
Hide file tree
Showing 31 changed files with 130 additions and 2,299 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void setup() throws Exception {
new MetadataFieldMapper[] { dtfm },
Collections.emptyMap()
);
MappingLookup mappingLookup = MappingLookup.fromMappers(mapping, List.of(dtfm, dateFieldMapper), List.of(), null);
MappingLookup mappingLookup = MappingLookup.fromMappers(mapping, List.of(dtfm, dateFieldMapper), List.of());
indicesService = DataStreamTestHelper.mockIndicesServices(mappingLookup);
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public static DocumentMapper createEmpty(MapperService mapperService) {
mapping,
mapping.toCompressedXContent(),
IndexVersion.current(),
mapperService.getIndexSettings(),
mapperService.getMapperMetrics(),
mapperService.index().getName()
);
Expand All @@ -60,13 +59,12 @@ public static DocumentMapper createEmpty(MapperService mapperService) {
Mapping mapping,
CompressedXContent source,
IndexVersion version,
IndexSettings indexSettings,
MapperMetrics mapperMetrics,
String indexName
) {
this.documentParser = documentParser;
this.type = mapping.getRoot().fullPath();
this.mappingLookup = MappingLookup.fromMapping(mapping, indexSettings);
this.mappingLookup = MappingLookup.fromMapping(mapping);
this.mappingSource = source;
this.mapperMetrics = mapperMetrics;
this.indexVersion = version;
Expand Down
Loading

0 comments on commit 8ca74fb

Please sign in to comment.