elasticsearch/elasticsearch — Issue #1738: `_routing` in child type mapping prevents indexing
Author: kevingessner
Created: 2012-02-24 19:30:56+00:00
State: open

It appears that the child document's routing value is, by default, its parent's ID. Thus, if the parent has a `_routing` path set in its mapping, the child and parent will be mapped to different shards (which is bad).

Adding `_routing` to the child mapping does not help, as the value from the document does not override the default routing value (i.e. the parent's ID). Instead, it causes an exception while indexing the child document.

Reproduced in 0.19.0.RC3: https://gist.github.com/1902998