Allow to setup a parent document on the ES ouput