markArticleChanged() 공개 메소드

Mark a single article "changed" so that the indexing back-end will update it during the next batch update.
public markArticleChanged ( $articleId )
$articleId Integer
예제 #1
0
 /**
  * @see ArticleSearchIndex::submissionFileDeleted()
  */
 function callbackSubmissionFileDeleted($hookName, $params)
 {
     assert($hookName == 'ArticleSearchIndex::submissionFileDeleted');
     list($articleId, $type, $assocId) = $params;
     $this->_solrWebService->markArticleChanged($articleId);
     return true;
 }
예제 #2
0
 /**
  * @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);
 }
예제 #3
0
 /**
  * @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);
 }
예제 #4
0
 /**
  * @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;
 }