Fixed elasticsearch config to work with embedded objects.