Comment cleanup
[lhc/web/wiklou.git] / includes / search / SearchEngine.php
index c17f8c2..acff026 100644 (file)
@@ -805,7 +805,8 @@ class SearchResult {
        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?