GuidePremium
Blog search in CoullWorks Blog for Magento 2
How articles appear in the store's own search (header autocomplete, a From the blog section on the catalogue results page, and the articles results page), the search settings, and what to run so they are not empty.
Updated 17 November 2026Back to the package pageBuy
The blog does not have a search box of its own by default. Articles are searched through the store's one search box, in three places:
- the Articles group in the header search's dropdown,
- a From the blog section on Magento's search results page (
/catalogsearch/result), and - the Articles results page at
/blog/search?q=..., which both of the first two link to.
All three read the same blog search index, and all three need it to be built. Read the next section first, because an empty index is the most common reason they show nothing.
Before you start: build the index#
Blog posts are written into a search index by the CoullWorks Blog Search indexer (see Indexers). Until it has run, the dropdown group and the From the blog section do not appear and the articles page says there are no matches, even though the blog itself works.
Run the full index once:
textbin/magento indexer:reindex coullworks_blog_post bin/magento cache:flush- Keep the indexer up to date. The four blog indexers run on Update by Schedule, so cron must be running (
bin/magento cron:runfrom the system cron). On Update on Save the index is updated as each post is saved. - Flush the cache after changing posts or the search settings below. The full page cache keeps a page that was built while the index was empty until it is cleaned.
If the dropdown, the section or the articles page is empty on a store that has posts, the steps above are the first thing to check, before the configuration.
The search settings#
All search settings are in Stores, Configuration, CoullWorks, Blog, Sidebar and Rail, with a label starting Search:. Each can be set per store view. The shipped defaults are the values shown in the screenshots.
Blog Search Engine#
- Where: Sidebar and Rail, Search: Blog Search Engine.
- Values: Automatic, OpenSearch (store search engine), Algolia, MySQL fulltext. Default: Automatic.
- What it changes: which engine answers blog searches. Automatic follows the store: Algolia when the Algolia module is installed and enabled, otherwise the store's own OpenSearch, otherwise a MySQL search. If no engine can be reached the blog falls back to a MySQL search by words in the title, excerpt and body and logs one warning an hour, so a search never shows the shopper an error.
- Change it when: you want to force one engine. When Algolia is installed, posts are pushed to a
<store index prefix>_cwb_postsindex, and its own autocomplete gets an Articles source. No Algolia code runs when it is not installed.

The field set to Automatic, with the hint "Automatic follows the store: Algolia when it is installed and enabled, else the store's OpenSearch, else MySQL fulltext." The label shows it can be set per store view.
Show "From the blog" on catalogue search results#
- Where: Sidebar and Rail, Search: Show "From the blog" On Catalog Search Results.
- Values: Yes or No. Default: Yes.
- What it changes: whether Magento's search results page shows the From the blog section at all. When it is No, the next two fields are hidden.

The switch set to Yes.
Articles in the section#
- Where: Sidebar and Rail, Search: Articles In The Section. Shown only when the section is on.
- Values: a whole number above zero. Default: 3.
- What it changes: how many articles the From the blog section lists. A link "See all N articles" goes to the full results.

The field with its default of 3.
Section position#
- Where: Sidebar and Rail, Search: Section Position. Shown only when the section is on.
- Values: Above the products, Below the products. Default: Above the products.
- What it changes: where the section sits on the results page, relative to the product list.

The field set to Above the products.
Articles in the header dropdown#
- Where: Sidebar and Rail, Search: Articles In The Header Dropdown.
- Values: a whole number above zero. Default: 3.
- What it changes: how many articles the Articles group in the header search dropdown lists, under the product suggestions.

The field with its default of 3.
Products on the article results page#
- Where: Sidebar and Rail, Search: Products On The Article Results Page.
- Values: a whole number above zero. Default: 4.
- What it changes: how many products from the store's own catalogue search appear in a row under the articles on
/blog/search.

The field with its default of 4.
The other two fields in the group, Sidebar Widgets On Blog Listings and Recent Posts To Show, are about the listing sidebar and are covered on Widgets.
Header search dropdown#
When a shopper types in the header search, Magento's suggestions drop down. The blog adds an Articles group below the product suggestions: a small image, the title, the category and the reading time, and a last row "See all articles for ...". Choosing an article opens it, and pressing Enter with nothing chosen runs the normal store search. This works on Luma's own search form and, when Algolia is in use, in Algolia's autocomplete.
The dropdown asks the index for titles only, so it never scans post bodies.

The header search with "tent" typed. The dropdown has the heading ARTICLES, then "How to pitch a tent in the wind" (Tents and shelters, 1 min read), "Layering for wet, cold days" (Guides, 1 min read) and "Morning light in the forest camp" (Trail notes, 1 min read), then the link See all articles for "tent". There are no product suggestions in this capture, because the demo store has none for this word.

The dropdown at phone width, under the open search field.
From the blog on the results page#
On /catalogsearch/result?q=... the blog adds a bordered From the blog panel with the matching articles, the search word highlighted in each title, and "See all N articles" at the top right. It sits above or below the product list, as set by Section Position. When the shopper's word matches no article, no panel is printed at all.

The results page for "tent": a From the blog panel with three cards (How to pitch a tent in the wind, with "tent" highlighted, Layering for wet, cold days and Morning light in the forest camp) and "See all 7 articles ›". Below it, Magento's own message "We can't find products matching the selection", because the demo store has no products for this word in this capture.

At phone width the three articles stack under the panel heading.
Articles results page#
Address: /blog/search?q=<words>. Optional parameters: category=<id> and tag=<id> to narrow the results and p=<page> for the page. Layout handle coullworks_blog_search_index.
The page has no search box of its own. The words stay in the store's header search. It shows the title "Articles for '...'", the number of matches, a link back to the full store results, the articles with the matching words highlighted, Category and Tags filters, and below the articles a "Products" row of up to Products On The Article Results Page products from the store's catalogue search, with an "All N products" link.
- An empty search word redirects to the blog home.
- A page number past the last page of results answers 404.
- With no matches the page says "No articles match" and offers a "Try a topic" list of tags and the recent articles. The page is sent to search engines as
noindex,follow.

The no-results state of /blog/search?q=tent: "0 articles" with a link "Back to all results for 'tent' (14 products)", the line "No articles match 'tent'.", a TRY A TOPIC row of tag chips (Beginners, Boots, Cooking, Lightweight, Navigation, Waterproofs, Wild camping, Winter) and a RECENT ARTICLES list. This capture was taken before the search index was built. With the index built, the same word lists the matching articles.







