update.Search function