Add check that no dynamic update was done with existing mappings and
dots
This commit is contained in:
parent
125473dc9f
commit
fbe1f50b18
|
@ -90,6 +90,7 @@ public class DocumentParserTests extends ESSingleNodeTestCase {
|
||||||
.endObject()
|
.endObject()
|
||||||
.endObject().bytes();
|
.endObject().bytes();
|
||||||
ParsedDocument doc = mapper.parse("test", "type", "1", bytes);
|
ParsedDocument doc = mapper.parse("test", "type", "1", bytes);
|
||||||
|
assertNull(doc.dynamicMappingsUpdate()); // no update!
|
||||||
String[] values = doc.rootDoc().getValues("foo.bar.baz");
|
String[] values = doc.rootDoc().getValues("foo.bar.baz");
|
||||||
assertEquals(3, values.length);
|
assertEquals(3, values.length);
|
||||||
assertEquals("123", values[0]);
|
assertEquals("123", values[0]);
|
||||||
|
|
Loading…
Reference in New Issue