The Solr document doesn't contain the HTML tags, only the raw text. The <title> tag is likely to contain the most relevant information regarding the subject of the wiki, so the purpose of this function is to isolate that info.