switch metadata export to ES