/** @var Content|null Content of the page (not text) */
private $content;
- /** @var WikiPage **/
+ /** @var WikiPage */
private $page;
/**
continue;
}
- $text = $search->getTextFromContent( $this->title, $this->content );
- if ( !$search->textAlreadyUpdatedForIndex() ) {
- $text = $this->updateText( $text, $search );
- }
+ $text = $this->content !== null ? $this->content->getTextForSearchIndex() : '';
+ $text = $this->updateText( $text, $search );
# Perform the actual update
$search->update( $this->id, $normalTitle, $search->normalizeText( $text ) );