<a class="[+as.resultLinkClass+]" href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.pagetitle+]</a>
<a class="[+as.resultLinkClass+]" href="[+as.resultLink+]" title="[+as.longtitle+]">[+as.longtitle+]</a>
You could try adding an "if" statement to check if longtitle is present and put it in only then.
My only problem was that I found a number of documents that didn’t have longtitles which means they showed as blanks.