Implementation of the new search API