refactor search log