update history search key