Skip to content

Commit

Permalink
Don't try to index annotations in reindex job
Browse files Browse the repository at this point in the history
(fix #2005)
  • Loading branch information
zerocrates committed Feb 8, 2023
1 parent 92df9b3 commit f0ee372
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/src/Job/IndexFulltextSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Omeka\Job;

use Omeka\Api\Adapter\FulltextSearchableInterface;
use Omeka\Api\Adapter\ValueAnnotationAdapter;

class IndexFulltextSearch extends AbstractJob
{
Expand All @@ -17,7 +18,8 @@ public function perform()
$adapters = $services->get('Omeka\ApiAdapterManager');
foreach ($adapters->getRegisteredNames() as $adapterName) {
$adapter = $adapters->get($adapterName);
if ($adapter instanceof FulltextSearchableInterface) {
if ($adapter instanceof FulltextSearchableInterface
&& !($adapter instanceof ValueAnnotationAdapter)) {
$page = 1;
do {
if ($this->shouldStop()) {
Expand Down

0 comments on commit f0ee372

Please sign in to comment.