Skip to content

Commit 35ce44c

Browse files
committed
iter
1 parent a29e695 commit 35ce44c

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

server/src/test/java/org/elasticsearch/index/mapper/DateFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,12 @@ public void testMergeText() throws Exception {
400400
String mapping = XContentFactory.jsonBuilder().startObject().startObject("_doc")
401401
.startObject("properties").startObject("date").field("type", "date").endObject()
402402
.endObject().endObject().endObject().string();
403-
DocumentMapper mapper = indexService.mapperService().parse("_doc", new CompressedXContent(mapping), false);
403+
DocumentMapper mapper = indexService.mapperService().parse("_doc", new CompressedXContent(mapping));
404404

405405
String mappingUpdate = XContentFactory.jsonBuilder().startObject().startObject("_doc")
406406
.startObject("properties").startObject("date").field("type", "text").endObject()
407407
.endObject().endObject().endObject().string();
408-
DocumentMapper update = indexService.mapperService().parse("_doc", new CompressedXContent(mappingUpdate), false);
408+
DocumentMapper update = indexService.mapperService().parse("_doc", new CompressedXContent(mappingUpdate));
409409

410410
IllegalArgumentException e = expectThrows(IllegalArgumentException.class,
411411
() -> mapper.merge(update.mapping()));

server/src/test/java/org/elasticsearch/index/mapper/MapperServiceTests.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,4 @@ public void testForbidMultipleTypes() throws IOException {
315315
assertThat(e.getMessage(), Matchers.startsWith("Rejecting mapping update to [test] as the final mapping would have more than 1 type: "));
316316
}
317317

318-
<<<<<<< 700d9ecc953fa30df0d12d086f0e9d9322446459
319-
public void testDefaultMappingIsDeprecated() throws IOException {
320-
String mapping = XContentFactory.jsonBuilder().startObject().startObject("_default_").endObject().endObject().string();
321-
MapperService mapperService = createIndex("test").mapperService();
322-
mapperService.merge("_default_", new CompressedXContent(mapping), MergeReason.MAPPING_UPDATE);
323-
assertWarnings("[_default_] mapping is deprecated since it is not useful anymore now that indexes " +
324-
"cannot have more than one type");
325-
}
326-
=======
327-
>>>>>>> Remove the `_default_` mapping.
328318
}

server/src/test/java/org/elasticsearch/index/mapper/MultiFieldCopyToMapperTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void testExceptionForCopyToInMultiFields() throws IOException {
3939
// first check that for newer versions we throw exception if copy_to is found withing multi field
4040
MapperService mapperService = MapperTestUtils.newMapperService(xContentRegistry(), createTempDir(), Settings.EMPTY, "test");
4141
try {
42-
mapperService.parse("type", new CompressedXContent(mapping.string()), true);
42+
mapperService.parse("type", new CompressedXContent(mapping.string()));
4343
fail("Parsing should throw an exception because the mapping contains a copy_to in a multi field");
4444
} catch (MapperParsingException e) {
4545
assertThat(e.getMessage(), equalTo("copy_to in multi fields is not allowed. Found the copy_to in field [c] which is within a multi field."));

0 commit comments

Comments
 (0)