Implement search and extended search