Upgrade to new directory API.
Fix self._search_url