Solr index rebuild does not populate index unless Search/bin/sync is executed

Hello,

I installed the Search and Solr modules and configured Apache Solr 9.10.1.

Environment

Omeka S version: 4.4.1
Search module: 0.20.1
Solr module: 0.22.1
Solr server: 9.10.1
OS: Ubuntu

Database contains items:
SELECT COUNT(*) FROM item;
Result: 840

Problem

Reindexing from the admin interface (Search → Indexes → Reindex) completes successfully but Solr remains empty.

Example query:
curl “http://my-ipaddress:8983/solr/omeka-s/select?q=*:*&rows=10

Result:
numFound = 0

However, when running the command manually:

sudo -u www-data php /var/www/html/omeka-s/modules/Search/bin/sync --user-id 26

Solr immediately begins indexing and documents appear.

Example after running sync:
numFound = 400

Why does the Search index rebuild job not populate Solr while the CLI sync command does?
Is additional configuration required for the job




worker?

The Search module has a setting to activate the Background Sync Job. Here is the documentation of the setting:

The frequency at which the module checks if there are resources to be indexed. A smaller interval means a more up-to-date index. This should only be used if the script bin/sync cannot be run periodically (using cron for instance). Leave empty to disable.

The index rebuild job has been changed recently. Its name does not reflect what it does anymore (I know it’s confusing, I have to change that).
Now it only marks all resources for reindexation. bin/sync does the real work.