refactor searchByKeyword