/** * Save the metadata to DB ( page_wikia_props ) * to prop name defined in self::article_prop_name */ public function save($propagateToSolr = false) { $this->setWikiaProp(self::ARTICLE_PROP_NAME, $this->articleId, $this->getMetadata()); if ($propagateToSolr) { $article = new Article($this->articleTitle); // push directly to article_metadata core $this->pushToSolr(F::app()->wg->CityId, $this->articleId, $this->getMetadata()); // push to main core via scribe ScribeEventProducerController::notifyPageHasChanged($article->getPage()); } }
public function triggerReindexing() { // FIXME: currently reindexing of only SpecialPromote data is impossible, some page must be indexed with it // so MainPage took the bullet, if in future search reindexing would be more selective, attempt to reindex only SpecialPromote data $article = new Article(Title::newMainPage()); ScribeEventProducerController::notifyPageHasChanged($article->getPage()); }