externalize azure search out of the API