adapt ranked relevance to new query syntax, adjust offset of the scroll to highlight function to make it more readable