Fix compilation.

This commit is contained in:
Adrien Grand 2016-01-19 09:32:04 +01:00
parent a90d2fa0b4
commit b2baf039fd
1 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ public class TestMergeMapperTests extends ESSingleNodeTestCase {
.endObject()
.endObject().endObject().bytes());
MapperService mapperService = createIndex("test").mapperService();
mapperService.merge("type", mapping, true, false);
mapperService.merge("type", mapping, MapperService.MergeReason.MAPPING_UPDATE, false);
CompressedXContent update = new CompressedXContent(XContentFactory.jsonBuilder().startObject()
.startObject("type")
@ -223,7 +223,7 @@ public class TestMergeMapperTests extends ESSingleNodeTestCase {
.endObject()
.endObject()
.endObject().endObject().bytes());
DocumentMapper mapper = mapperService.merge("type", update, false, false);
DocumentMapper mapper = mapperService.merge("type", update, MapperService.MergeReason.MAPPING_UPDATE, false);
assertNotNull(mapper.mappers().getMapper("foo"));
assertFalse(mapper.sourceMapper().enabled());