# Dynamic strict and child document index fails

**URL:** <https://discuss.elastic.co/t/dynamic-strict-and-child-document-index-fails/69111>\
**Category:** Elasticsearch\
**Created:** [December 15, 2016, 4:54am UTC](https://discuss.elastic.co/t/dynamic-strict-and-child-document-index-fails/69111 "2016-12-15T04:54:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrenm](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@darrenm](https://discuss.elastic.co/u/darrenm)\
**Post date:** [December 15, 2016, 4:54am UTC](https://discuss.elastic.co/t/dynamic-strict-and-child-document-index-fails/69111/1 "2016-12-15T04:54:33Z")

</div>

I have a mapping of a parent doc and child doc with both documents set to "dynamic=strict".

In a bulk call it indexes the parent then (tries to) indexes the children. The indexing of the child documents fail because the "document is too strict", or if I move the \_parent value to a different place the error is because "\_id" cannot be null, or it needs a "\_routing" value.

However, when I remove "dynamic=strict" from the child mapping, it works just fine.

Is it just me or does that look like a bug? Seems I should be able to maintain strict mapping on a child document.

ES 5.1

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 12, 2017, 4:54am UTC](https://discuss.elastic.co/t/dynamic-strict-and-child-document-index-fails/69111/2 "2017-01-12T04:54:49Z")

</div>

Closed on January 12, 2017, 4:54am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
