Made a start on the search API.