Hi Joakim, The function org-reveal needs to be run after the search is executed. If you are using the built-in emacs rgrep (for example), I think you need to add a function to next-error-hook. Grep for “add-hook 'occur-mode-find-occurrence-hook” in org.el for inspiration.
(Arguably this hook function should be added to org-mode, if enough people find it useful). -- Aaron Ecay