Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Jan 23, 2025
1 parent bffdc37 commit 0d0ec31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ public void testSyntheticUpdates() throws Exception {
public void testSyntheticUpdatesLegacy() throws Exception {
var mappings = XContentBuilder.builder(XContentType.JSON.xContent()).startObject().startObject("_doc").startObject("_source");
mappings.field("mode", "synthetic").endObject().endObject().endObject();
// one version before SOURCE_MAPPER_MODE_ATTRIBUTE_NOOP
MapperService mapperService = createMapperService(IndexVersions.LOGSB_OPTIONAL_SORTING_ON_HOST_NAME, mappings);
var version = IndexVersionUtils.getPreviousVersion(IndexVersions.SOURCE_MAPPER_MODE_ATTRIBUTE_NOOP);
MapperService mapperService = createMapperService(version, mappings);
SourceFieldMapper mapper = mapperService.documentMapper().sourceMapper();
assertTrue(mapper.enabled());
assertTrue(mapper.isSynthetic());
Expand Down

0 comments on commit 0d0ec31

Please sign in to comment.