fix up hash link and order matches by relevance score