protected function initText() {
if ( !isset( $this->mText ) ) {
if ( $this->mRevision != null ) {
- //TODO: don't use the text, but the content object!
+ //TODO: if we could plug in some code that knows about special content models *and* about
+ // special features of the search engine, the search could benefit.
$content = $this->mRevision->getContent();
$this->mText = $content->getTextForSearchIndex();
} else { // TODO: can we fetch raw wikitext for commons images?