Sample search functionality