Skip to content
Available for new work
Pages in Blog

GuidePremium

The four blog indexers in CoullWorks Blog for Magento 2

What each of the four CoullWorks Blog Search indexers does, what makes each one run, how to set their mode in Index Management and rebuild them from the command line.

Updated 17 November 2026Back to the package pageBuy

Blog search reads a search index, not the blog tables. Four indexers keep that index current. They appear in System, Tools, Index Management beside Magento's own, and they follow Magento's usual rules for indexers. If you have never changed an indexer's mode before, the steps below are the whole of it.

What each indexer does#

Indexer (as named in Index Management)IdRebuildsReacts to changes in
CoullWorks Blog Searchcoullworks_blog_postThe search document of each visible post, in the store's search engine and in Algolia when it is activePosts, their store views, tags, categories and customer groups
CoullWorks Blog Search: category changescoullworks_blog_post_categoryThe search documents of the posts that use a categoryA category being renamed or changed
CoullWorks Blog Search: tag changescoullworks_blog_post_tagThe search documents of the posts that use a tagA tag being renamed or changed
CoullWorks Blog Search: author changescoullworks_blog_post_authorThe search documents of the posts by an authorAn author being renamed or changed

A post's search document holds its title, excerpt, body text with the tags stripped, category and tag names, author, address, image, publish date and customer groups. Only posts that are visible are written. The dates for a scheduled post are checked at search time, so a post scheduled for the future appears on time without a reindex.

The last three exist because a post's document carries its category, tag and author names. Renaming a tag would otherwise leave stale names in the index until each post was saved again.

Set the mode#

Each indexer is in one of two modes:

  • Update on Save. The index is updated at once when a post is saved or deleted. It is simple, and it adds a little to every admin save.
  • Update by Schedule. Changes are queued and a cron job applies them. It keeps saves fast, and it needs cron running: with no cron, new posts never reach search. A row shows "backlog" while changes are waiting.

Set the three change indexers to the same mode as CoullWorks Blog Search, as each one's description in Index Management asks.

Index Management with all four CoullWorks Blog Search indexers listed at the foot of the grid

System, Tools, Index Management with 18 records: Magento's own indexers, then the four blog indexers at the bottom ("CoullWorks Blog Search" and its category, tag and author changes rows), each with its description, a green "Update by Schedule" mode, status "Ready" and a Schedule Status such as "IDLE (10 IN BACKLOG)". The backlogs in this capture (10, 5, 8 and 3) show changes still waiting because cron was not running on the demo store.

  1. Open System, Tools, Index Management.
  2. Tick the four CoullWorks Blog Search rows.
  3. In Actions, choose Update on Save or Update by Schedule and press Submit.

coullworks_blog_post is the one that writes posts into search. It watches the post table and the tables that join a post to its store views, tags, categories and customer groups. When it is on Update on Save and a post is saved or deleted through the blog, that post's document is refreshed straight away.

Category changes#

coullworks_blog_post_category watches the category table and refreshes the documents of the posts in the changed category.

Tag changes#

coullworks_blog_post_tag watches the tag table and refreshes the documents of the posts with the changed tag.

Author changes#

coullworks_blog_post_author watches the author table and refreshes the documents of that author's posts.

Command line#

TaskCommand
Rebuild the whole indexbin/magento indexer:reindex coullworks_blog_post
Put an indexer on schedulebin/magento indexer:set-mode schedule coullworks_blog_post and the same for coullworks_blog_post_category, coullworks_blog_post_tag and coullworks_blog_post_author
Put an indexer on savebin/magento indexer:set-mode realtime coullworks_blog_post
See the state of every indexerbin/magento indexer:status
Apply queued changes nowbin/magento cron:run (the indexing job is part of Magento's indexer cron group)

Index Management has no button that rebuilds a single indexer, so rebuild from the command line. After a rebuild, flush the cache so pages built while the index was empty are not kept: bin/magento cache:flush.

When to rebuild by hand#

  • After installing or upgrading the module, once.
  • After changing the Algolia settings. The module writes Algolia's settings on a full rebuild, not on every save.
  • When the header dropdown or the From the blog section is empty on a store that has posts. See Blog search.

The command line commands are also on CLI and cron.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.