Implementing the SEARCH endpoint - the basics