From d78b2b50fe0baf906eaafdf207d71a3a800f6cf0 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Fri, 1 Apr 2022 14:13:19 -0700 Subject: [PATCH] Call setArticleStatus in place of markArticleChanged --- LucenePlugin.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LucenePlugin.inc.php b/LucenePlugin.inc.php index def9a1f..c5aff3f 100644 --- a/LucenePlugin.inc.php +++ b/LucenePlugin.inc.php @@ -580,7 +580,7 @@ function callbackArticleMetadataChanged($hookName, $params) { assert($hookName == 'ArticleSearchIndex::articleMetadataChanged'); list($article) = $params; /* @var $article Article */ - $this->_solrWebService->markArticleChanged($article->getId()); + $this->_solrWebService->setArticleStatus($article->getId()); // in OJS core in many cases callbackArticleChangesFinished is not called. // So we call it ourselves, it won't do anything is pull-indexing is active $this->callbackArticleChangesFinished(null, null); @@ -595,7 +595,7 @@ function callbackSubmissionFilesChanged($hookName, $params) { assert($hookName == 'ArticleSearchIndex::submissionFilesChanged'); list($article) = $params; /* @var $article Article */ - $this->_solrWebService->markArticleChanged($article->getId()); + $this->_solrWebService->setArticleStatus($article->getId()); return true; } @@ -606,7 +606,7 @@ function callbackSubmissionFilesChanged($hookName, $params) { function callbackSubmissionFileChanged($hookName, $params) { assert($hookName == 'ArticleSearchIndex::submissionFileChanged'); list($articleId, $type, $fileId) = $params; - $this->_solrWebService->markArticleChanged($articleId); + $this->_solrWebService->setArticleStatus($article->getId()); // in OJS core in many cases callbackArticleChangesFinished is not called. // So we call it ourselves, it won't do anything is pull-indexing is active $this->callbackArticleChangesFinished(null, null); @@ -620,7 +620,7 @@ function callbackSubmissionFileChanged($hookName, $params) { function callbackSubmissionFileDeleted($hookName, $params) { assert($hookName == 'ArticleSearchIndex::submissionFileDeleted'); list($articleId, $type, $assocId) = $params; - $this->_solrWebService->markArticleChanged($articleId); + $this->_solrWebService->setArticleStatus($article->getId()); return true; }