# Search index not adding new pages

**URL:** <https://community.bluespice.com/t/search-index-not-adding-new-pages/307>\
**Category:** Bugs\
**Created:** [June 12, 2025, 2:31pm UTC](https://community.bluespice.com/t/search-index-not-adding-new-pages/307 "2025-06-12T14:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doc\_Dish](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@Doc\_Dish](https://community.bluespice.com/u/Doc_Dish)\
**Post date:** [June 12, 2025, 2:31pm UTC](https://community.bluespice.com/t/search-index-not-adding-new-pages/307/1 "2025-06-12T14:31:48Z")

</div>

**Describe the issue / Steps to reproduce:**  
Since upgrading to BlueSpice 4.5 with OpenSearch, I have found that new pages are not automatically added to the index. Running purgeIndexes.php, initBackends.php & rebuildIndex.php forces the new pages into the search index.

**Expected behavior:**  
New pages should automatically be included in the search index (as they were with ElasticSearch).

**System info:**  
[view system requirements](https://en.wiki.bluespice.com/wiki/Setup:System_requirements)

- OS: Rocky Linux 9.6
- Server: Apache 2.4.62
- PHP: 8.2.28 (fpm-fcgi)
- Database: 10.5.27-MariaDB
- BlueSpice version: 4.5.3 (build:20241120083336)
- Browser version: All browsers

---

<div class="post-metadata">

**Author:** ![huaj1ng](https://dub1.discourse-cdn.com/flex017/user_avatar/community.bluespice.com/huaj1ng/32/116_2.png) [@huaj1ng](https://community.bluespice.com/u/huaj1ng)\
**Post date:** [June 13, 2025, 2:13pm UTC](https://community.bluespice.com/t/search-index-not-adding-new-pages/307/2 "2025-06-13T14:13:00Z")

</div>

Hello Doc\_Dish,

the search index of BlueSpice is updated by a scheduled mechanism called “jobRunner”. To check whether it is working correctly, you can run `maintenance/showJobs.php` to see jobs waiting to be executed: most of the time the returned number should be 0, or if it is a larger number it should go down when you re-check it minutes later.

In case your jobRunner is not working correctly, please first force run all remaining jobs, then adjust the crontab settings on your system:

Step 1. Force run jobs with this command:

```sh
while ["$(php maintenance/showJobs.php)" != "0"]; do php maintenance/runJobs.php --maxjobs 100; done

```

Step 2. Adjust crontab settings, see [Cronjobs - BlueSpice Helpdesk](https://en.wiki4.bluespice.com/wiki/Setup:Installation_Guide/Optimization/Cronjobs)  
Tips:

1. Install crontab if it is not yet present.
2. Add the following entries of crontab on behalf of the root user (e.g run `crontab -e` as root)

```auto
*/5 * * * * /usr/bin/php /var/www/bluespice/w/maintenance/runJobs.php --memory-limit=max
*/1 * * * * /usr/bin/php /var/www/bluespice/w/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php /var/www/bluespice/w/maintenance/Maintenance.php --max-processes=100 --wait >/dev/null 2>&1

```

These not only fixes the jobRunner, but another backend service called processRunner as well. The latter is needed for tasks like sending change summary emails to users.

Please note that the paths used here are only examples, you will need to correspond to real-life paths on your server before applying the settings.

Best regards,  
Hua

---

<div class="post-metadata">

**Author:** ![Doc\_Dish](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@Doc\_Dish](https://community.bluespice.com/u/Doc_Dish)\
**Post date:** [June 16, 2025, 2:49pm UTC](https://community.bluespice.com/t/search-index-not-adding-new-pages/307/3 "2025-06-16T14:49:36Z")

</div>

Thanks Hua. The showjobs.php command returned ~1800 jobs on both my UAT and Live instances of BlueSpice.

I have cleared the jobs and added the crontab entries, which will hopefully resolve the issue.

Thanks again, Doc Dish
