refactor: bd search directive