Mark a single article "changed" so that the indexing
back-end will update it during the next batch update.
public markArticleChanged ( $articleId ) | ||
$articleId | Integer |
/** * @see ArticleSearchIndex::submissionFileDeleted() */ function callbackSubmissionFileDeleted($hookName, $params) { assert($hookName == 'ArticleSearchIndex::submissionFileDeleted'); list($articleId, $type, $assocId) = $params; $this->_solrWebService->markArticleChanged($articleId); return true; }
/** * @covers SolrWebService::markArticleChanged() * @covers SolrWebService::pushChangedArticles() */ public function testPushIndexing() { // Test indexing. The service returns true if the article // was successfully processed. $this->articleNotInIndex(3); $this->solrWebService->markArticleChanged(3); self::assertEquals(1, $this->solrWebService->pushChangedArticles()); $this->articleInIndex(3); }
/** * @covers SolrWebService::markArticleChanged() * @covers SolrWebService::pushChangedArticles() */ public function testPushIndexing() { $this->markTestSkipped('Not currently working in CI environment.'); // Test indexing. The service returns true if the article // was successfully processed. $this->articleNotInIndex(3); $this->solrWebService->markArticleChanged(3); self::assertEquals(1, $this->solrWebService->pushChangedArticles()); $this->articleInIndex(3); }
/** * @see ArticleSearchIndex::suppFileMetadataChanged() */ function callbackSuppFileMetadataChanged($hookName, $params) { assert($hookName == 'ArticleSearchIndex::suppFileMetadataChanged'); list($suppFile) = $params; /* @var $suppFile SuppFile */ if (!is_a($suppFile, 'SuppFile')) { return true; } $this->_solrWebService->markArticleChanged($suppFile->getArticleId()); return true; }