replace elasticsearch parent child relational model with flat inner objects hierarchy