Check inner field with metadata field name is ok
This commit is contained in:
parent
4e48154130
commit
7bfe1bd628
|
@ -873,5 +873,8 @@ public class DocumentParserTests extends ESSingleNodeTestCase {
|
|||
mapper.parse("test", "type", "1", bytes)
|
||||
);
|
||||
assertTrue(e.getMessage(), e.getMessage().contains("cannot be added inside a document"));
|
||||
|
||||
BytesReference bytes2 = XContentFactory.jsonBuilder().startObject().field("foo._ttl", 0).endObject().bytes();
|
||||
mapper.parse("test", "type", "1", bytes2); // parses without error
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue