Search query refactor
Update hook