Returns a relevant search query snippet from a document.