Update detail search function.