Add check that no dynamic update was done with existing mappings and

dots
This commit is contained in:
Ryan Ernst 2016-04-18 14:24:11 -07:00
parent 125473dc9f
commit fbe1f50b18
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ public class DocumentParserTests extends ESSingleNodeTestCase {
.endObject()
.endObject().bytes();
ParsedDocument doc = mapper.parse("test", "type", "1", bytes);
assertNull(doc.dynamicMappingsUpdate()); // no update!
String[] values = doc.rootDoc().getValues("foo.bar.baz");
assertEquals(3, values.length);
assertEquals("123", values[0]);